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

7 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Parallel Computing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by