%% Vector with NaN Values
% Create a vector with NaN values and remove each NaN.

A = [1 3 NaN 6 NaN];
R = rmmissing(A)

% Copyright 2012 The MathWorks, Inc.