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

6 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Parallel Computing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by