User`s guide

false
11-85
see the reference pages for codistributor1d and codistributor2dbc. To use
the default distribution scheme, you can specify a codistributor constructor without
arguments. For example:
spmd
C = false(8,codistributor1d());
end
C = false(sz, ___ ,codist,'noCommunication') specifies that no interworker
communication is to be performed when constructing a codistributed array, skipping
some error checking steps.
C = false(sz, ___ ,codist,'like',P) creates a codistributed array of false
values with the specified size and distribution scheme. If the codistributor argument is
omitted, the distribution scheme is taken from the codistributed array P.
Examples
Create Distributed False Matrix
Create a 1000-by-1000 distributed array of falses with underlying class double:
D = false(1000,'distributed');
Create Codistributed False Matrix
Create a 1000-by-1000 codistributed matrix of falses, distributed by its second
dimension (columns).
spmd(4)
C = false(1000,'codistributed');
end
With four workers, each worker contains a 1000-by-250 local piece of C.
Create a 1000-by-1000 codistributed matrix of falses, distributed by its columns.
spmd(4)
codist = codistributor('1d',2,100*[1:numlabs]);
C = false(1000,1000,codist);
end