numnan
(To be removed) Number of NaN values in neural network data
numnan will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
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 R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork