MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在MATLAB中关闭GUI时执行的函数 (https://www.labfans.com/bbs/showthread.php?t=23517)

poster 2019-12-10 20:41

在MATLAB中关闭GUI时执行的函数
 
我正在使用指南在matlab中创建GUI。它是非阻塞的(不调用uiwait )。关闭gui窗口后,我想执行一些清理代码。

是否应该类似于指南为我创建的gui_OpeningFcn模板定义的gui_ClosingFcn回调?



[B]回答:[/B]

图形窗口具有[URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#DeleteFcn"]'DeleteFcn'属性[/URL] ,该[URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#DeleteFcn"]属性[/URL]定义了在关闭/删除窗口时将运行的回调函数。您可能会用它来进行清理。



[url=https://stackoverflow.com/questions/3000564]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:05

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.