How to recover broken .m file?
1 view (last 30 days)
Show older comments
I had problem with my PC and had to recover my data from it. There is a problem with one recovered matlab file. When I open it i see something like this (image below).

>> When I try to open it in matlab there is error like this:
>> KS
??? Error: File: KS.m Line: 1 Column: 1
The input character is not valid in MATLAB statements or expressions.
<<
Can anyone help me with this issue?
1 Comment
John D'Errico
on 19 Mar 2016
Sorry. I think - learn to keep backups.
My guess is you would spend more time trying to find a way to possibly partially recover this file than you would in re-writing it.
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!