User`s guide
true
11-295
true
Array of logical 1 (true)
Syntax
T = true(sz,arraytype)
T = true(sz,'like',P)
C = true(sz,codist)
C = true(sz, ___ ,codist,'noCommunication')
C = 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 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.
'codistributed'
Specifies codistributed array, using the default
distribution scheme.
arraytype
'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