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 Center および File ExchangeParallel Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by