How run two algorithms with parallel ?

1 visualización (últimos 30 días)
sasan ahmadi
sasan ahmadi el 2 de Dic. de 2016
Comentada: Walter Roberson el 4 de Dic. de 2016
Hi ! I want run two algorithms on parallel in service how i can?

Respuestas (1)

mizuki
mizuki el 4 de Dic. de 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
2. PARFOR makes the operations inside of the for-loop parallel:
algs = {'alg1', 'alg2'};
parfor i = 1:length(algs)
algs{i}
end
  1 comentario
Walter Roberson
Walter Roberson el 4 de Dic. de 2016
That should look more like
algs = {@alg1, @alg2};
parfor i = 1:length(algs)
algs{i}()
end
You might need to addAttachedFiles

Iniciar sesión para comentar.

Categorías

Más información sobre Application Deployment en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by