MATLAB: Embed one GUI (made using GUIDE) into another GUI

matlab gui

Hi,
is it possible to embed one user interface made by GUIDE (.fig and .m file) into a panel or any other placeholder in another GUI? This way I want to make one UI window showing two subwindows.
I have only seen samples with embedding of single plots but not complete UIs.
Thanks
Holger

Best Answer

GUIDE is designed to only be able to lay out a single figure, I gather. Any additional figures generated are expected to be just graphics that do not need layout or controls.
GUIDE-built GUIs are expected to start up and then immediately return to the caller, leaving the GUI running, rather than expected to start up and not return until "finished".
It is possible to "make it work" by editing the code that GUIDE generates, but GUIDE is not designed for the situation.