problem with parfor loop
    5 views (last 30 days)
  
       Show older comments
    
Is it possible to parfor this?
 for iter=1:50
     for i=1:100
         x(:,i)= rand(3,1)
     end
 end
0 Comments
Accepted Answer
  Matt J
      
      
 on 2 Oct 2013
        
      Edited: Matt J
      
      
 on 2 Oct 2013
  
      Sure, especially since the outer loop is not doing anything and can be abandoned.
     parfor i=1:100
         x(:,i)= rand(3,1)
     end
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!
