How run two algorithms with parallel ?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi ! I want run two algorithms on parallel in service how i can?
댓글 수: 0
답변 (1개)
mizuki
2016년 12월 4일
Parallel Computing Toolbox can allow you to run two processes in parallel.
1. Write two algorithms on two separated functions/scripts - alg1.m and alg2.m
algs = {'alg1', 'alg2'};
parfor i = 1:length(algs)
algs{i}
end
댓글 수: 1
Walter Roberson
2016년 12월 4일
That should look more like
algs = {@alg1, @alg2};
parfor i = 1:length(algs)
algs{i}()
end
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!