How to exit background program using MATLAB?
6 views (last 30 days)
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,'" &'];
Do you know how to terminate the program?
A Jenkins on 3 Mar 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