How to exit background program using MATLAB?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ELI
am 3 Mär. 2015
Bearbeitet: Walter Roberson
am 20 Mär. 2017
Hi,
I want to exit a background program after I started it using MATLAB code. do you know how to do it?
My start up code was:
str1=['!ITK-SNAP.exe -g "',dir1,'" -s "',dir2,'" &'];
eval(str1);
Do you know how to terminate the program?
0 Kommentare
Akzeptierte Antwort
A Jenkins
am 3 Mär. 2015
It would probably be better to have your program terminate itself. However, if you are on Windows you can kill it using taskkill. Something like this:
!taskkill /im ITK-SNAP.exe
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!