From: Georg on
I want to execute some commands when the user is closing the gui, how can I do that? Actually I want to close an external application that I started in the gui.
From: Jan Simon on
Dear Georg,

> I want to execute some commands when the user is closing the gui, how can I do that? Actually I want to close an external application that I started in the gui.

See the properties 'CloseRequestFcn' and 'DeleteFcn' of the figure.

Jan
From: Georg on
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i0imv4$lje$1(a)fred.mathworks.com>...
> Dear Georg,
>
> > I want to execute some commands when the user is closing the gui, how can I do that? Actually I want to close an external application that I started in the gui.
>
> See the properties 'CloseRequestFcn' and 'DeleteFcn' of the figure.
>
> Jan

Thanks! I wrote a new function that is executed instead of the closereq function, so now I can do whatever I want! Thanks for the tip.

(CloseRequestFcn can be found under properties for the GUI)