Define output of a callback function

9 次查看(过去 30 天)
Gustl
Gustl 2011-9-8
Is there any way to define the output variables of callback function in order to pass the variable to base workspace?

回答(2 个)

Grzegorz Knor
Grzegorz Knor 2011-9-8

Jan
Jan 2011-9-8
I strongly suggest not to do this. Writing variables to the base workspace will lead to confusions and impedes the debugging dramatically.
It is much better to store values in the GUI's UserData or application data (see "help setappdata" and "help guidata") and get them by a dedicated funtion from the GUI on demand.

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by