isinfnanmiss#
Purpose#
Returns true if the argument contains an infinity, NaN, or missing value.
Format#
- y = isinfnanmiss(x)#
- Parameters:
x (NxK matrix) – data
- Returns:
y (scalar) – 1 if x contains any infinities, NaNs, or missing values, else 0.
Examples#
// Matrix with no special values
x = { 1 2, 3 4 };
print (isinfnanmiss(x));
// Matrix with a missing value
x = { 1 2, 3 . };
print (isinfnanmiss(x));
The code above produces the following output:
0.0000000
1.0000000
See also
Functions scalinfnanmiss(), ismiss(), scalmiss()