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!!

Answers (1)

Walter Roberson
Walter Roberson on 19 Dec 2015

0 votes

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

Asked:

on 19 Dec 2015

Answered:

on 19 Dec 2015

Community Treasure Hunt

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

Start Hunting!