tags:

views:

44

answers:

0

I have a program that I am running that uses video and the only way to stop it(right now) once it starts is to press Ctl+C.

My file contains a GUI which displays the live video feed and then a filtered version of it in the same GUI. I can add a close button to the gui with:

"uicontrol('String', 'Close', 'Callback', 'close(gcf)');"

The problem is that this just closes that window...which pops right back up since the code is endlessly looping.

Is there a way to set up the close button such that, when pressed, it not only closes the GUI but also ends the program?

related questions