X is a DOUBLE type scalar, vector or matrix.
includeNull is a BOOLEAN.
Check each element in X to see if it is a NaN/Inf value. Return a BOOLEAN type of the same length as X. If includeNull is set to true, NULL values will return true. The default value of includeNull is false.
Related function: countNanInf