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

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

If there is no PCT installed then parfor is accepted but will operate as a for.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 8 de Sept. de 2015

Respondida:

el 8 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by