isnan
Check for elements in an array which are $NaN$.
(u)=isnan(a)
Inputs
a Any array.
Outputs
u An array of the same size as a . Each element of this array is 1 if the corresponding element of a is NaN , and 0 otherwise