Borrar filtros
Borrar filtros

Run multiple exe at same time

9 visualizaciones (últimos 30 días)
xiaohuo
xiaohuo el 21 de Feb. de 2022
Comentada: xiaohuo el 10 de Mzo. de 2022
Dear all,
I would like to know if MATLAB is able to run the multiple exe simultaneously. If yes, how to run it?

Respuesta aceptada

Voss
Voss el 21 de Feb. de 2022
Yes, you can use "&" to return control to MATLAB immediately after the exe starts. Then you can immediately run an exe again. For instance:
!excel.exe &
!excel.exe &
That would start two instances of Excel.
  5 comentarios
Walter Roberson
Walter Roberson el 2 de Mzo. de 2022
system(strjoin({cmd_H01, cmd_H02}, ';'))
xiaohuo
xiaohuo el 2 de Mzo. de 2022
system([cmd01,'&',cmd02]);
This works well!
Thanks!

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 21 de Feb. de 2022
As .exe are specific to Windows, you could consider using .NET System.Diagonstics.Process to create the processes and control them.
  3 comentarios
xiaohuo
xiaohuo el 10 de Mzo. de 2022
Thanks.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Environment Customization 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