setappdata Question
古いコメントを表示
Within a GUI if I want to create a variable in one function and use it in another is "setappdata" a good stratagy to use? I am trying to get away from any use of global variables
採用された回答
その他の回答 (1 件)
Daniel Shub
2011 年 9 月 30 日
1 投票
Yes, setappdata is a reasonable strategy and much better than a global variable. The FAQ provides some other alternatives.
カテゴリ
ヘルプ センター および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!