Download MATLAB PARALLEL COMPUTING TOOLBOX - S User`s guide
Transcript
true true Array of logical 1 (true) Syntax T T C C C = = = = = true(sz,arraytype) true(sz,'like',P) true(sz,codist) true(sz, ___ ,codist,'noCommunication') true(sz, ___ ,codist,'like',P) Description T = true(sz,arraytype) creates a matrix with true values in all elements. The size and type of array are specified by the argument options according to the following table. Argument sz arraytype Values Descriptions n Specifies size as an n-by-n matrix. m,n or [m n] Specifies size as an m-by-n matrix. m,n,...,k or [m n ... k] Specifies size as an m-by-n-by-...-by-k array. 'distributed' Specifies distributed array. 'codistributed' Specifies codistributed array, using the default distribution scheme. 'gpuArray' Specifies gpuArray. T = true(sz,'like',P) creates an array of true values with the same type as array P. C = true(sz,codist) creates a codistributed array of true values with the specified size. The codistributor object codist specifies the distribution scheme for creating the codistributed array. For information on constructing codistributor objects, see the 11-295