Skip to Main Content Skip to Search
Product Documentation

getLocalPart - Local portion of codistributed array

Syntax

L = getLocalPart(A)

Description

L = getLocalPart(A) returns the local portion of a codistributed array.

Examples

With four labs,

A = magic(4);   %replicated on all labs
D = codistributed(A, codistributor1d(1));
L = getLocalPart(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]

See Also

codistributed | codistributor

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS