How does parallel computing toolbox works in nested loop?
3 views (last 30 days)
Raymond Norris on 6 May 2023
MATLAB will run the inner parfor loop as a for-loop. Therefore, in your example, where you have a parallel pool of 8 workers, 2 will be used for the ii loop and the other 6 will stay idle. The parfor loop embedded within firtgp will run as a for-loop.