필터 지우기
필터 지우기

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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by