How to use a matrix in parfor?
26 views (last 30 days)
I have troubles with using parfor. I have program similar to this (heat transfer):
There is always error like: The PARFOR loop cannot run due to the way variable 'A' is used .
tank you very much Lukas
Namnendra on 19 Jun 2022
The different iterations in a parfor loop work independently. So, if "i" is the iterating variable in a parfor loop, you can't use A[i]=A[i+1], because the order of different iterations of loop can vary. You can call a function instead to perform the necessary operation.