File may be corrupt

3 views (last 30 days)
newtomatlab dfdfdf
newtomatlab dfdfdf on 19 Dec 2015
Answered: Walter Roberson on 19 Dec 2015
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!!

Answers (1)

Walter Roberson
Walter Roberson on 19 Dec 2015
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.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!