How to run 4 loops simutaneously?

1 view (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 12 Jun 2015
If you have the Parallel Computing Toolbox, there is "parfor" and "spmd" and distributed arrays.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!