How to pass parameters between local functions of uicontrol, pushbutton?
4 ビュー (過去 30 日間)
古いコメントを表示
I am writing a program in which a figure is created. I have added 3 uicontrol pushbuttons. the idea is this: user can select the desired part of data by one of pushbuttons and save the selected part by another pushbutton. if he/she doesn't want to save is able to cancel the selected part by the other pushbutton,'cancel'.
My problem is that I can not pass parameters from one local function of pushbutton to the other one I mean matlab forgets the variables created in one local function when it goes out of it. what can I do?
0 件のコメント
採用された回答
Dishant Arora
2014 年 5 月 15 日
How can I share data between callback functions in my GUI(s)? Make use of setappdata, getappdata or global variables as shown.
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!