Open Separate Matlab window to run in background

11 views (last 30 days)
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 Comments
Grzegorz Knor
Grzegorz Knor on 23 Sep 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 on 25 Sep 2011
It's the same in Windows; add "&" at the end of the command string.

Sign in to comment.

Answers (1)

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

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!