generat fig from m file

Hi.
I have wrote a guide using the guide function in Matlab, so I have obtained te program.m file and the program.fig file.
Unfortunately, I erased the fig file so I can't modify the guide window using the guide function.
How can I generate again the fig file from the m-file to be able to modify the program window??
thanks

2 件のコメント

Shaggy Zee
Shaggy Zee 2020 年 5 月 23 日
Hi, please can you help me. How did you created a .fig file from the get go?
Rik
Rik 2020 年 5 月 23 日
@Shaggy, see the answer below and my answer to your question.

サインインしてコメントする。

回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 3 月 28 日

0 投票

Unless you are talking about the 'exported' *.m file, the *.fig file and regular *.m file are not related and the figure cannot be regenerated from it.
It is probably easiest in that situation to start over but rename the uicontrols/panels/axes etc. the same as they were in the original *.m file and then copy the content of the callback functions into the new file. Whenever you save the GUIDE GUI, export at the same time so you have a standalone *.m file.

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

質問済み:

2012 年 3 月 28 日

コメント済み:

Rik
2020 年 5 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by