File may be corrupt

Hi everyone yesterday I saved some matlab figures to my computer but when I tried to open the figures today, I got this error :
Error using open(line 163) Unable to read MAT-file F:\%directory% File may be corrupt
does anyone know how to fix this error or even extract the data from corrupt files, PLEASE!!

回答(1 个)

Walter Roberson
Walter Roberson 2015-12-19

0 个投票

Was the error message literally about F:\%directory% ? If so then you used the wrong file name when you attempted to open the file. In MS Windows, % around a name indicates that a shell variable of that name was expected to exist and have its value substituted at that point. You need to be opening a .fig file . You might want to go in to Windows Explorer and ask it to reveal file extensions.

类别

帮助中心File 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