How to exit background program using MATLAB?

1 visualización (últimos 30 días)
ELI
ELI el 3 de Mzo. de 2015
Editada: Walter Roberson el 20 de Mzo. de 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?

Respuesta aceptada

A Jenkins
A Jenkins el 3 de Mzo. de 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

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by