Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Subscription assignment dimension mismatch when simulations > a certain number of times in parallel computing
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone,
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:
parfor z=1:16;
g=[1 2 3 4 no. of simulations];
[x(:,:,z),y(:,:,z),a(:,:,z),b(:,:,z)]=function(w,g,z);
end
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 :)
댓글 수: 0
답변 (1개)
Matt J
2013년 4월 30일
Does it happen in a regular for-loop (not parfor)? If so, it should be pretty easy to trap with DBSTOP.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!