Info

This question is closed. Reopen it to edit or answer.

how to interact betwen a GUI created by guide and a simple interface?

1 view (last 30 days)
Please i want a way to interact betwen a GUI created by guide and a simple interface when it is launched there no variables in the workspace

Answers (1)

Walter Roberson
Walter Roberson on 13 Jun 2013
The "handles" structure created by GUIDE will be associated with the figure that is first created by GUIDE, so if you want to access those from the other interface you need to know what the figure number is (or you need to search for an appropriate object.)
guidefigure = .... %get it through one way or another
handles = guidata(guidefigure); %can be done even within a different figure
  2 Comments
kheder
kheder on 13 Jun 2013
just to understand my case i have a gui with a callback than lunch an other interface how should i do
Walter Roberson
Walter Roberson on 13 Jun 2013
function pushbutton_Callback(hObject, event, handles);
name_of_other_interface_goes_here();
end

Community Treasure Hunt

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

Start Hunting!