MATLAB: How to run 4 loops simutaneously

parallel computing

In my code there are 4 matrix to fill. So there are 4 "for…end". They are independent by each other. Now I want to do some acceleration. How to run there 4 loops simultaneously?

Best Answer

If you have the Parallel Computing Toolbox, there is "parfor" and "spmd" and distributed arrays.