so... in order pass data from mainGUI to secondGUI i used setappdata(mainGUI,'',) then launched the secondGUI. The figure window of secondGUI popped up behind the mainGUI though.
I changed this to setappdata(0,'',) and the secondGUI now pops up IN FRONT of the mainGUI.
So what are the cons of setting app data in the root?
after the GUIs are closed, should i clean up what was stored there?
Is setting app data in the figure or the root preferable?