Use a parfor loop on the outermost loop.
Parallel computing in matlab
2 次查看(过去 30 天)
显示 更早的评论
I recently became familiar with Parallel computing in a multicolor processor.in my program in matlab I have a matrix [1000,1000]and this matrix divided in two matrix [500,1000]. numbers in two matrix changing by using function 'a' .This function using 'ode45' and I should call this function 4 times(tow times for each matrix) with different parameters (Runtime: High). first I call this function for created required numbers. And in two separate for loops two matrix numbers are changing (No relationship between for loops). My processor is dual core. I have two questions : can I call function 'a' Parallel? I see using parallel computing for one for loop but can I using parallel computing for my two for loops?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!