Why I get this error message? How figure can be corrupt?

조회 수: 10 (최근 30일)
Stelios Fanourakis
Stelios Fanourakis 2018년 7월 5일
댓글: Jan 2018년 7월 11일
I try to open a figure and I get the following error
Error using load
Unable to read MAT-file D:\stelios phd files\DesMoines\karadokei\assume.fig. File might be corrupt.
Error in matlab.graphics.internal.figfile.FigFile/read (line 31)
hgDataVars = load(filename, '-mat', '-regexp', '^hg[M]');
Error in matlab.graphics.internal.figfile.FigFile
Error in loadFigure (line 31)
FF = matlab.graphics.internal.figfile.FigFile(fullpath);
Error in openfig>localOpenFigure (line 69)
h = loadFigure(filename, visibleAction);
Error in openfig (line 40)
figOut = localOpenFigure(filename, reuse, visibleAction);
Error in experiment (line 5)
hFig = openfig('assume.fig')
Any reasons for this?
  댓글 수: 1
dpb
dpb 2018년 7월 5일
Seems to be a recurrent theme...
Unfortunately, don't see any real permanent solutions other than revert to a previous working copy or update version seems to have succeeded at least on one occasion...

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2018년 7월 11일
The file is corrupted. There is no chance that the forum can fix the problem for you.
You have to restore the former version of the file from your backup - perhaps Recent Versions under Windows? All changes you have done since the last backup are lost.
Do you remember what you have done with the file before it got corrupted?
  댓글 수: 2
Stelios Fanourakis
Stelios Fanourakis 2018년 7월 11일
Problem fixed Jan. I found a back up of the fig. I posted this question wondering if there was a way to fix or restore corrupted files.
Jan
Jan 2018년 7월 11일
It depends on how the file was damaged.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by