Hello. If you are able to successfully open a matlabpool with your installation of R2011b, then you must have the Parallel Computing Toolbox. In that case, the getLocalPart function should also be available to you. What is the output from typing the following at the MATLAB command line:
Assuming that you can get the issue with getLocalPart sorted out (perhaps by calling technical support), this is how you would proceed with distributed arrys/spmd:
matlabpool open 100
size(myMat)
spmd
codist = codistributor1d(1);
myMatdb = codistributed(myMat, codist);
chunk_of_data = getLocalPart(myMatdb);
[out_of_chunk] = objFun(params, chunk_of_data);
fullOutput = codistributed.build(out_of_chunk, codist);
end
You can find more information here:
help getLocalPart
help codistributor.build
Best Answer