Filter löschen
Filter löschen

Parfor Loop Indexing, Starting at value other than 1

1 Ansicht (letzte 30 Tage)
Thomas
Thomas am 23 Jul. 2015
Beantwortet: Jon am 23 Jul. 2015
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!

Antworten (1)

Jon
Jon am 23 Jul. 2015
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.)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by