Command for closing a terminal window from Matlab?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a small Matlab script that calls GAMS. GAMS is run in a separate terminal window and when GAMS has finished the optimisation, the terminal window stays open and the Matlab script continues. This is looped a number of times (sometimes several hundreds) which causes a great number of terminal windows that need to be manually closed. There should be a command that I can put in the Matlab script to send the 'exit' command to the terminal window after GAMS has finished running, but I can't find it.
Would appreciate some help!
Best regards, Elisabeth
2 Commenti
Walter Roberson
il 3 Nov 2013
You will need to show us how you start up GAMS, and you will need to indicate which operating system you are running.
Risposte (1)
Walter Roberson
il 4 Nov 2013
How about not opening another window for it:
system('"C:/GAMS/win64/23.8/gams" model_name.gms');
2 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!