User`s guide

NaN
11-203
NaN
Array of Not-a-Numbers
Syntax
A = NaN(sz,arraytype)
A = NaN(sz,datatype,arraytype)
A = NaN(sz,'like',P)
A = NaN(sz,datatype,'like',P)
C = NaN(sz,codist)
C = NaN(sz,datatype,codist)
C = NaN(sz, ___ ,codist,'noCommunication')
C = NaN(sz, ___ ,codist,'like',P)
Description
A = NaN(sz,arraytype) creates a matrix with underlying class of double, with NaN
values in all elements.
A = NaN(sz,datatype,arraytype) creates a matrix with underlying class of
datatype, with NaN values in all elements.
The size and type of array are specified by the argument options according to the
following table.
Argument Values Descriptions
n Specifies size as an n-by-n matrix.
m,n or [m n] Specifies size as an m-by-n matrix.
sz
m,n,...,k or [m
n ... k]
Specifies size as an m-by-n-by-...-by-k array.
'distributed'
Specifies distributed array.
arraytype
'codistributed'
Specifies codistributed array, using the default
distribution scheme.