Function Reference
— Mapping Function: isnan (x)

Return 1 for elements of x that are NaN values and zero otherwise. NA values are also considered NaN values. For example,

          isnan ([13, Inf, NA, NaN])
               [ 0, 0, 1, 1 ]