MATLAB: Convert Composite to array

compositeParallel Computing Toolboxspmd

Is it possible to convert a Composite object created with spmd to an array?

Best Answer

Yes, you can use Composite indexing (which behaves pretty much like cell array indexing), like this:
spmd
x = labindex;
end
xlocal = [x{:}]
Related Question