Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exported m-file to GUI

3 views
Skip to first unread message

Christina S

unread,
Nov 24, 2009, 4:27:21 PM11/24/09
to
Hello,

I used GUIDE to export my GUI (.FIG file) to a single m-file which was then converted into a .TXT file because I could only save off my files in text format. I tried running the m-file and it opened up the figure all messed up. How do I rebuild my original GUI from the exported text?

Mark

unread,
Dec 4, 2009, 11:51:03 AM12/4/09
to
I did something simlar for a similar reason (can only save off files as ASCII), but in this GUIDE-export process you get an ASCII .m file and a .mat file. The .mat file stores information about the .fig file. You need both of these to together run the original GUI as it was intended.

So far after doing the export, I then converted the .mat file to ASCII storing all the .mat information in a way so I can reconstruct it later. This was a bit tricky since the .mat file contains all kinds of data types, but I hope it works.

I then saved off the ASCII file and I'm currently trying to write code to reconstruct this into the .mat file so I can actually run the original GUI. I hope to then reconstruct the orginal .fig.

I wish Mathworks had a way to save a GUI as only ASCII data files and then reconstruct the ASCII data files into the original .fig file. If anyone figures that out, please share ...

"Christina S" <yoonh...@lmco.com> wrote in message <hehj3p$l9j$1...@fred.mathworks.com>...

0 new messages