Open Separate Matlab window to run in background

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 commentaires

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 le 25 Sep 2011
It's the same in Windows; add "&" at the end of the command string.

Connectez-vous pour commenter.

Réponses (1)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Question posée :

le 23 Sep 2011

Community Treasure Hunt

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

Start Hunting!

Translated by