Very useful!
I encounter a slight problem when using the function within a matlab GUI.
Adding "maximize(handles.figure1);" at the end of the mygui_OpeningFcn() function doesn't maximize the window as expected.
Did anyone encountered this problem before? How can I use the maximize function to enlarge the GUI at start?