%% Matrix with NaN Values
% Create a 2-by-2 matrix with a NaN value in each column. Fill NaN with 100 in the first column and 1000 in the second column.

A = [1 NaN; NaN 2]
F = fillmissing(A,'constant',[100 1000])

% Copyright 2020 The MathWorks, Inc.