| Parallel Computing Toolbox™ | ![]() |
L = localPart(A)
L = localPart(A) returns the local portion of a distributed array.
With four labs
A = magic(4); %replicated on all labs
D = distributed(A, distributor('1d', 1), 'convert');
L = localPart(D)returns
Lab 1: L = [16 2 3 13] Lab 2: L = [ 5 11 10 8] Lab 3: L = [ 9 7 6 12] Lab 4: L = [ 4 14 15 1]
distributor, distributed, distributionPartition
![]() | load | matlabpool | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |