How to switch between parfor and for based on if you have the Parallel Computing Toolbox

7 Ansichten (letzte 30 Tage)
How can you automatically switch between parfor and for based on if you have the Parallel Computing Toolbox without copying the code within the for loop?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Sep. 2015
If there is no PCT installed then parfor is accepted but will operate as a for.

Weitere Antworten (0)

Kategorien

Mehr zu Parallel Computing 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