User`s guide

gather
11-103
W 1024x1 8192 double
More About
Tips
Note that gather assembles the codistributed or distributed array in the workspaces of
all the workers on which it executes, or on the MATLAB client, respectively, but not both.
If you are using gather within an spmd statement, the gathered array is accessible on
the client via its corresponding Composite object; see “Access Worker Variables with
Composites”. If you are running gather in a communicating job, you can return the
gathered array to the client as an output argument from the task.
As the gather function requires communication between all the workers, you cannot
gather data from all the workers onto a single worker by placing the function inside a
conditional statement such as if labindex == 1.
See Also
arrayfun | codistributed | bsxfun | distributed | gpuArray | pagefun |
pmode