show variables in parfor
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Tiki Tiki
le 18 Juil 2018
0 votes
2 commentaires
Walter Roberson
le 18 Juil 2018
If you want to capture the console output of parfor(), then use diary(), or call the parfor() within evalc()
Tiki Tiki
le 18 Juil 2018
Catégories
En savoir plus sur Parallel for-Loops (parfor) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!