How can i run multiple codes simultaneously using parallel computing facility in local machine
1 次查看(过去 30 天)
显示 更早的评论
i have a test1.m, test2.m, test3.m files, which can work separately without any dependencies, how can i run on parallel computing.
0 个评论
回答(1 个)
KSSV
2017-7-25
Check the below example:
funcs = {@exp,@sin} ;
args = {2,pi/4} ;
sols = cell(1,2) ;
parfor n = 1:2
sols{n}=funcs{n}(args{n});
end
M = sols{1} ; N = sols{2} ;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!