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!