MATLAB: Split a matrix on parallel computing with spmd

MATLABparallel computingParallel Computing Toolbox

As I can split a vector 4×18 in four workers each with a 1×18 table, selecting the vector for each worker in parallel computing with spmd.

Best Answer

You could do that using distributed arrays. For example
spmd
d = codistributed(rand(4, 18), codistributor1d(1))
end
will result in each worker storing a 1x18 portion of d.