Filter löschen
Filter löschen

passing data between two different gui window using guide

2 Ansichten (letzte 30 Tage)
SUDIP PODDAR
SUDIP PODDAR am 13 Apr. 2011
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 Kommentar
Walter Roberson
Walter Roberson am 19 Jul. 2011
duplicate is at http://www.mathworks.com/matlabcentral/answers/5487-passing-data-into-another-gui-figure-window-using-guide

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt Fig
Matt Fig am 13 Apr. 2011
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.

Weitere Antworten (2)

Sean de Wolski
Sean de Wolski am 13 Apr. 2011
doc setappdata
doc getappdata
doc guidata

Doug Hull
Doug Hull am 13 Apr. 2011

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by