MATLAB: Passing data between two different gui window using guide

duplicate post requiring mergingguideMATLAB

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.

Best Answer

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.
Related Question