how to link 1 GUI in MATLAB with other.for example in the first GUI there is 1 pushbutton if it is pressed then a new GUI for that button press opens??
Best Answer
Hi,
Let say I have 2 GUIs.
untitled1
untitled2
In first GUI I have pushbutton to call the second GUI.
just save your data you want to show in the second GUI in the handles, like
handles.mydata = mydata;
or with setappdata() to a GUI:
firstGUI = gcf;
setappdata(firstGUI, 'mydata', mydata);
then start the second GUI with pushbutton_callback and handles.mydata as argument for the second GUI, or get the stored data with getappdata() in your second GUI:
Best Answer