show variables in parfor
이전 댓글 표시
Hi everyone,
I practice parfor code in help(matlab). i run code but dont know how to show variable in parfor.
parfor i = 1:4
temp = struct();
temp.myfield1 = rand();
temp.myfield2 = i;
end
parfor i = 1:4
temp = struct('myfield1',rand(),'myfield2',i);
end
Thank for helping me.
채택된 답변
추가 답변 (1개)
Tiki Tiki
2018년 7월 18일
0 개 추천
댓글 수: 2
Walter Roberson
2018년 7월 18일
If you want to capture the console output of parfor(), then use diary(), or call the parfor() within evalc()
Tiki Tiki
2018년 7월 18일
카테고리
도움말 센터 및 File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!