How to exit background program using MATLAB?

1 回表示 (過去 30 日間)
ELI
ELI 2015 年 3 月 3 日
編集済み: Walter Roberson 2017 年 3 月 20 日
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?

採用された回答

A Jenkins
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 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by