How run two algorithms with parallel ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi ! I want run two algorithms on parallel in service how i can?
0 Kommentare
Antworten (1)
mizuki
am 4 Dez. 2016
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 Kommentar
Walter Roberson
am 4 Dez. 2016
That should look more like
algs = {@alg1, @alg2};
parfor i = 1:length(algs)
algs{i}()
end
Siehe auch
Kategorien
Mehr zu Parallel Computing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!