필터 지우기
필터 지우기

How to exit background program using MATLAB?

조회 수: 3 (최근 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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by