User`s guide
codistributed.cell
11-29
C = cell(8, codistributor1d());
end
C = cell(m, n, p, ..., codist) and C = cell([m, n, p, ...],
codist) are the same as C = codistributed.cell(m, n, p, ...) and C =
codistributed.cell([m, n, p, ...]), respectively. You can also use the optional
'noCommunication' argument with this syntax.
Examples
With four workers,
spmd(4)
C = codistributed.cell(1000);
end
creates a 1000-by-1000 distributed cell array C, distributed by its second dimension
(columns). Each worker contains a 1000-by-250 local piece of C.
spmd(4)
codist = codistributor1d(2, 1:numlabs);
C = cell(10, 10, codist);
end
creates a 10-by-10 codistributed cell array C, distributed by its columns. Each worker
contains a 10-by-labindex local piece of C.
See Also
cell | distributed.cell