Open Separate Matlab window to run in background

12 visualizaciones (últimos 30 días)
Leigh
Leigh el 23 de Sept. de 2011
Hi,
I'm currently running a program which models cyclone-induced surges. As I am running thousands of these cyclones I have created a script which sets up and runs the program using the dos command. The output files from this program are quite large so I have another script which extracts the data I need, and saves it to a .mat file. It then deletes the original output files as these are quite large. I run this script by opening a second matlab window using dos(['matlab -r ...etc.
The problem is that the loop I have which runs the cyclones 1:370000 waits for the second matlab window to finish running the script and exit before continuing.
What I want is for the loop to continue with the second matlab window running in the background.
Any help would be greatly appreciated.
  2 comentarios
Grzegorz Knor
Grzegorz Knor el 23 de Sept. de 2011
On linux systems, just add & (ampersand) at the end of the line.
I know that on windows systems it can be done, but unfortunately now I do not have access to any windows with matlab.
per isakson
per isakson el 25 de Sept. de 2011
It's the same in Windows; add "&" at the end of the command string.

Iniciar sesión para comentar.

Respuestas (1)

per isakson
per isakson el 23 de Sept. de 2011
  1 comentario
Leigh
Leigh el 25 de Sept. de 2011
Thanks for your help, I am running on windows :( Will try to read more into it.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by