Continue after .exe finishes
Ältere Kommentare anzeigen
Hi,
I am running an external .exe file that returns something to the matlab command line once it has finished. I would like to use this in an optimization but currently the enter key needs to be pressed in the command line in order for the .exe to close and then for the matlab code to continue.
Here's how i'm calling the .exe: eval(['!program',tempfilename]);
Is there a way I can continue after it has finished? I have tried a timer and the java robot, but neither seem to work.
Thanks,
1 Kommentar
Rik
am 9 Jun. 2021
You will have to find a way to get your program to work without interaction.
Also, why aren't you using system instead of eval?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Interpolation of 2-D Selections in 3-D Grids finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!