Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

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

Inf MATLAB function reference page

codistributed.nan, distributed.inf

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS