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

7 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Parallel Computing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by