フィルターのクリア

Pass variable from one callback to another

9 ビュー (過去 30 日間)
Aditya
Aditya 2014 年 1 月 18 日
コメント済み: Alexei 2014 年 11 月 14 日
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.
  1 件のコメント
Vivek
Vivek 2014 年 1 月 31 日
Now I am clear. Thanq

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by