Open Separate Matlab window to run in background
11 views (last 30 days)
Show older comments
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
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.
Answers (1)
See Also
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!