How to carry data to next push button in GUI
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, I am new to matlab. I am using 3 push buttons in GUI and one editable text for user input. 1st is to select time from excel sheet next to select data from same excel sheet. After giving one user input in editable text box and clicking 3rd push button remaining code runs to give output.
So, when i click 3rd button it says data and time to be undefined variables.
How can I overcome this?
0 件のコメント
回答 (1 件)
Geoff Hayes
2015 年 7 月 16 日
Aditya - just use the handles structure to manage the data that is created from one push button callback so that the others will be able to access it to. See http://www.mathworks.com/matlabcentral/answers/179265-how-to-pass-a-struct-between-callbacks-in-gui for an example of this. Also, see guidata for more details.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!