フィルターのクリア

Can't open corrupted figure

4 ビュー (過去 30 日間)
Gechas
Gechas 2014 年 12 月 10 日
回答済み: Jan 2017 年 9 月 4 日
Hi!
I used GUIDE for creating a figure and I have been using the program some time now and it always worked fine.
Now suddenly I get the following error message when trying to open the figure in GUIDE or trying to run the program:
Error using load
Unable to read MAT-file C:\test1.fig.
File might be corrupt.
Error in matlab.graphics.internal.figfile.FigFile/read (line 36)
hgDataVars = load(filename, '-mat', '-regexp', '^hg[M]');
Error in matlab.graphics.internal.figfile.FigFile (line 104)
Error in hgload (line 50)
Error in matlab.hg.internal.openfigLegacy (line 57)
[fig, savedvisible] = hgload(filename, struct('Visible','off'));
Error in gui_mainfcn>local_openfig (line 286)
gui_hFigure = matlab.hg.internal.openfigLegacy(name, singleton, visible);
Error in gui_mainfcn (line 158)
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
Error in VFFinder (line 42)
gui_mainfcn(gui_State, varargin{:});
All I changed today was adding a toolbar in GUIDE by "tools->toolbar editor". I can't even try if that caused the problem by undoing it because, as I mentioned above, I can't open the figure in GUIDE.
It would be very nice if anyone could help me.
Thank you!
  2 件のコメント
Nicolas Martin
Nicolas Martin 2016 年 4 月 19 日
I currently have the exact same issue. Have you find any solution ?
FaithM
FaithM 2017 年 9 月 1 日
I am having the same problem with a GUI that I'm updating.

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

回答 (1 件)

Jan
Jan 2017 年 9 月 4 日
When you have a corrupted file, there was a problem during the update of the file. Then restore the former version of the FIG file from your backup. E.g. under Windows you have the File History.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by