MATLAB: Two figures in one GUI

gui

Hi. In my GUI i want to open new window with axes (clicking the button) and to plot trend on these axes. As Ii understand the onlyway to do it is to create new GUI with its own m-file.But new GUI has to use data from first(main) and i don't know how t0 do this. So the questions are: 1)How to open new (secodary) GUI from main GUI 2)How to use data from main GUI in secondary GUI
Thanks in advance.

Best Answer

No, that's not true. You don't need a second m-file. You can simply call figure() from whatever callback function you like (to create a brand new figure window), then plot(), subplot(), imshow(), or whatever and start drawing/displaying/graphing in it.