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!