I have a GUI called GUI_main
in which I have a pushbutton called pushbutton_GUI_main
. I currently have the following callback function implemented:
function pushbutton_GUI_main_Callback(hObject, eventdata, handles)
GUI_sub
Where GUI_sub
is another GUI that opens when you click on pushbutton_GUI_main
. However, I want something like the following:
function pushbutton_GUI_main_Callback(hObject, eventdata, handles)
if (GUI_sub == open)
close(GUI_sub)
else
GUI_sub
That is, with pushbutton_GUI_main
I want to be able to open and close GUI_sub
.
GUI_sub
return a handle to itself? If so, you can probably store that handle in your GUI_main handles and then check its status. I haven't done that exact thing so I can't help with the exact implementation – Trogdor