フィルターのクリア

How to carry data to next push button in GUI

2 ビュー (過去 30 日間)
Aditya Palsule
Aditya Palsule 2015 年 7 月 16 日
回答済み: Geoff Hayes 2015 年 7 月 16 日
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?

回答 (1 件)

Geoff Hayes
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.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by