User`s guide

11 Functions — Alphabetical List
11-68
D1 = distributed(magic(Nsmall));
Create a large distributed array directly, using a build method:
Nlarge = 1000;
D2 = rand(Nlarge,'distributed');
Retrieve elements of a distributed array, and note where the arrays are located by their
Class:
D3 = gather(D2);
whos
Name Size Bytes Class
D1 50x50 733 distributed
D2 1000x1000 733 distributed
D3 1000x1000 8000000 double
Nlarge 1x1 8 double
Nsmall 1x1 8 double
See Also
codistributed | gather | parpool