How can i run multiple codes simultaneously using parallel computing facility in local machine

4 ビュー (過去 30 日間)
Mallikarjun Bangi
Mallikarjun Bangi 2017 年 7 月 25 日
再開済み: Mallikarjun Bangi 2025 年 1 月 6 日
i have a test1.m, test2.m, test3.m files, which can work separately without any dependencies, how can i run on parallel computing.

回答 (1 件)

KSSV
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} ;

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by