passing data between two different gui window using guide

조회 수: 4 (최근 30일)
SUDIP PODDAR
SUDIP PODDAR 2011년 4월 13일
I am a beginner with MATLAB GUIs. I have two GUI figure windows. I want to transfer data( from a textbox) in the first GUI figure to another second GUI figure & want to use that data in second GUI figure. Assuming I am using Guide.
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 7월 19일
duplicate is at http://www.mathworks.com/matlabcentral/answers/5487-passing-data-into-another-gui-figure-window-using-guide

댓글을 달려면 로그인하십시오.

채택된 답변

Matt Fig
Matt Fig 2011년 4월 13일
From the second GUI callback which needs the data, simply use:
H = findall(0,'tag','myeditboxtag');
Where myeditboxtag is the unique tag given to the editbox in the first GUI. Then H will have the handle to that editbox. Once you have this you can then access the 'string' property to retrieve the data.

추가 답변 (2개)

Sean de Wolski
Sean de Wolski 2011년 4월 13일
doc setappdata
doc getappdata
doc guidata

Doug Hull
Doug Hull 2011년 4월 13일

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by