How to switch between parfor and for based on if you have the Parallel Computing Toolbox
    3 views (last 30 days)
  
       Show older comments
    
    Sonoma Rich
      
 on 8 Sep 2015
  
    
    
    
    
    Answered: Walter Roberson
      
      
 on 8 Sep 2015
            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?
0 Comments
Accepted Answer
  Walter Roberson
      
      
 on 8 Sep 2015
        If there is no PCT installed then parfor is accepted but will operate as a for.
0 Comments
More Answers (0)
See Also
Categories
				Find more on Loops and Conditional Statements in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
