HOW TO HANDLE MORE THAN ONE FIGURES IN MATLAB 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

 Accepted 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');

2 Comments

open()'ing a .fig file will not run it.
Each .fig file has a corresponding .m file. You need to run the .m file in order to start the gui stored in the .fig file.

Sign in to comment.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!