MATLAB Create a GUI with GUIDE - Can You Edit the Output?

  • Thread starter Thread starter ranger
  • Start date Start date
  • Tags Tags
    Edit Gui Output
AI Thread Summary
Using GUIDE to create a GUI generates an m-file that can be edited. To modify an existing GUI from an m-file downloaded online, the command "guide(gcf);" can be used, provided the figure is open. For specific files, the command "guide(foo)" allows for direct editing of the GUI saved as foo.fig. This enables users to tweak the interface according to their needs efficiently.
ranger
Gold Member
Messages
1,685
Reaction score
2
Whenever we use GUIDE to create a GUI, GUIDE generates an m-file. Now,
is it possible for one to use this m-file generated by GUIDE to re-edit the GUI? I mean say I downloaded an m-file from the internet which has a GUI interface. Can I use GUIDE to edit the m-file and "tweak" the interface to my needs?

--thanks.
 
Physics news on Phys.org
I figured it out. If anyone cares, the command is guide(gcf); Where gcf means get current figure. Of course the figure you wish to edit should obviously be open when you run that command.
 
If the gui is saved as foo.fig -- you can edit it specifically using guide(foo)
 
Last edited:

Similar threads

Replies
5
Views
3K
Replies
1
Views
3K
Replies
4
Views
7K
Replies
2
Views
5K
Replies
8
Views
3K
Replies
12
Views
3K
Back
Top