Skip to Main Content Skip to Search
Product Documentation

distributed.NaN - Create distributed array of Not-a-Number values

Syntax

D = distributed.NaN(n)
D = distributed.NaN(m, n, ...)
D = distributed.NaN([m, n, ...])
D = distributed.NaN(..., classname)

Description

D = distributed.NaN(n) creates an n-by-n distributed matrix of NaN values.

D = distributed.NaN(m, n, ...) or D = distributed.NaN([m, n, ...]) creates an m-by-n-by-... distributed array of NaN values.

D = distributed.NaN(..., classname) specifies the class of the distributed array D. Valid choices are the same as for the regular NaN function: 'double' (the default), or 'single'.

Examples

Create a 1000-by-1000 distributed matrix of NaN values of class double:

D = distributed.NaN(1000)

See Also

codistributed.NaN | distributed.Inf | Inf

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS