Parfor Loop Indexing, Starting at value other than 1

2 ビュー (過去 30 日間)
Thomas
Thomas 2015 年 7 月 23 日
回答済み: Jon 2015 年 7 月 23 日
Is there any problem with indexing a parfor loop such that it starts at an index other than 1? That is, something like
parfor ii=5:25
<body>
end
Also, could this type of indexing cause some unexpected problems? Thanks!

回答 (1 件)

Jon
Jon 2015 年 7 月 23 日
Why not try it and see? You already wrote the code, just insert something in place of
<body>
like
blah(ii) = rand;
and see what happens? (I don't think you should have any problems.)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by