How to exit background program using MATLAB?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
A Jenkins
2015-3-3
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!