Why ParFor does not work for this?
2 views (last 30 days)
It is a really simple manipulation. I want to replace some lines of the matrix with zeros.
When I replace for with parfor I get a classification error. But the results of the manipulation is independent from each other. I don't understand why.
Thank you Erdem
Namnendra on 19 Jun 2022
All variables referenced at the top level of the parfor must be resolved and classified. Go through the following link to know more :-
You can try putting the body of perfor loop into a function and calling the function from the loop.
I hope this helps.