Pass variable from one callback to another

9 次查看(过去 30 天)
Hey guys, I wanted to know how to pass the value of a variable from one callback function to another withing the same GUI. Thanks.
  3 个评论
Jan
Jan 2014-1-18
@Vivek: No, don't do this. Poluting the base workspace is a really bad idea.
Alexei
Alexei 2014-11-14
Why, what's wrong with putting a variable in the workspace? Why is that "polluting"?

请先登录,再进行评论。

采纳的回答

Jan
Jan 2014-1-18
编辑:Jan 2014-1-18
This topic has been discussed very frequently, such that searching will be useful:
You will find many suggestions concerning the commands setappdata and guidata, which both store the variables locally in the GUI.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by