This question is closed. Reopen it to edit or answer.
Subscription assignment dimension mismatch when simulations > a certain number of times in parallel computing
1 view (last 30 days)
I've another question. I'm new to parallel computing. In fact, I've only started trying to use it today. I've the following in a parallel computing environment:
g=[1 2 3 4 no. of simulations];
When no. of simulations is set to 10, the parallel computing works perfectly. But, ideally, I want to run 1000 simulations in this parfor loop. However, when I tried anything above 10 loops, it stops halfway, and gives me an error of "Subscripted assignment dimension mismatch". The z number of cases are independent of each other.
Would anyone be able to point out what is possibly wrong with my code?
Would appreciate any help. Thanks :)