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.

답변 (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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by