MATLAB: HOW TO HANDLE MORE THAN ONE FIGURES IN MATLAB GUI

gui

dear all,
I have three different figure files in my program. On the first form(figure file) I have push buttons for the corresponding figure file. i want to press the button and the corresponding figure file should run, as we usually do in visual basic etc. where we have many forms and we can open different forms through push button. i have used edit command but its open the corresponding .m file doensn't run the fig file.
could anyone plz help me in this regard
kifayat

Best Answer

What function do you use, edit() or open(). If you use open(), you may need to specify the .fig extension. For example:
h=plot(1:10,rand(1,10));
saveas(h,'MyFig.fig');
close all;
open('MyFig.fig');