GUI to GUI data transfur both ways...

1 view (last 30 days)
Chris E.
Chris E. on 24 Jun 2013
I have some GUI's that I'm making that call each others data. This is the general issue or plan for the two GUI's:
In the main GUI, it has a button that loads the sub GUI. The main GUI has data (a list) that is found in the main GUI's handle structure and is put into the sub GUI when the button is hit. Then I change things to that imputed data (that's the list mentioned before) in that sub GUI. I have a "Done" button in the sub GUI, that when it is pushed, will save the changed data and close the GUI. Hence the changed list should be put into the main GUI.
Well my question is this:
How do I use varargout or varargin?
I do not know how to use the varargout or varargin to account for the data. I looked online and could not find any examples or any answers that helped me out.
Well here is some of the code I use, well mainly functions:
OutPut = customChange_GUI(handles.list); %found in main GUI to call sub GUI
All I want is the changed "OutPut" (manual user changes, so not all automatic...) from input of the "handles.list"
Any help, links to examples, or explanations of varargout or varargin would be really welcomed! Thank you a ton, Chris

Accepted Answer

Jan
Jan on 24 Jun 2013
Edited: Jan on 24 Jun 2013
Both commands varargout and varargin are exhaustively explained in the documentation:
doc varargin
doc varargout
You will see, that both command do not help to store data in a GUI. But the command guidata does. The sharing of data between GUIs is discussed frequently. So searching for these terms will reveal many solutions and discussions: http://www.mathworks.com/matlabcentral/answers/?term=share+data+GUI

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!