countNanInf

Syntax

countNanInf(X, [includeNull=false])

Details

An aggregate function that counts the number of NaN values and Inf values in X. When includeNull = true, the result includes the number of null values.

Parameters

X is a DOUBLE type scalar, vector or matrix.

includeNull (optional) is a BOOLEAN value. The default value is false.

Returns

A scalar of type INT.

Related function: isNanInf