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