www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/NaNElementsInVectorExample.m

    %% |NaN| Elements in Vector
% Determine the |NaN| elements of the row vector, |A|.
A = 0./[-2 -1 0 1 2]

%%
TF = isnan(A)