Skip to Main Content Skip to Search
Product Documentation

Composite - Access nondistributed data on multiple labs from client

Constructor

Composite

Description

Variables that exist on the labs running an spmd statement are accessible on the client as a Composite object. A Composite resembles a cell array with one element for each lab. So for Composite C:

C{1} represents value of C on lab1
C{2} represents value of C on lab2
etc.

spmd statements create Composites automatically, which you can access after the statement completes. You can also create a Composite explicitly with the Composite function.

Methods

existCheck whether Composite is defined on labs
subsasgnSubscripted assignment for Composite
subsrefSubscripted reference for Composite

Other methods of a Composite object behave similarly to these MATLAB array functions:

disp, displayDisplay Composite
endIndicate last Composite index
isemptyDetermine whether Composite is empty
lengthLength of Composite
ndimsNumber of Composite dimensions
numelNumber of elements in Composite
sizeComposite dimensions

  


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