How can I make a .p file from a .fig and .m file of my GUI?

 Accepted Answer

If you want one stand alone file, do this:
  1. Open the GUI in GUIDE
  2. Choose: File > Export
  3. Pick a name for an M-file, say: mygui
Now you have a single file (an M-file) which can run without the FIG-file. If you still want to turn it to a p-code file, then do:
pcode mygui % Use the name of the file you picked above.

1 Comment

Dragging the pcode throwing an error because of uiopen function. Any work around for this?

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Asked:

on 26 May 2011

Commented:

on 17 Dec 2018

Community Treasure Hunt

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

Start Hunting!