numnan
Number of NaN values in neural network data
Syntax
numnan(x)
Description
numnan(x)
takes a matrix or cell array of matrices and returns the
number of NaN elements in it.
Examples
x = [1 2; 3 NaN] n = numnan(x) x = {[1 2; 3 NaN] [5 NaN; NaN 8]} n = numnan(x)
Version History
Introduced in R2010b