How to close external application

I use "!"C:\Program Files\...." to open an external application.
Now, how do I make matlab wait until the program ends and CLOSE this external application?

 Accepted Answer

Jan
Jan on 28 Feb 2014
Edited: Jan on 28 Feb 2014
There is no way to check, if the external program is ready.
If your application can signal that it is ready, you can close it by using taskkill.

Asked:

on 28 Feb 2014

Answered:

on 28 Feb 2014

Community Treasure Hunt

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

Start Hunting!