Hi, Out of nowhere most of my Matlab code has changed into unreadable characters. It was fine the last time I saved my file.

This is how a few characters look like: íþ ð 432130dm ð (screenshot attached for few lines of code). Does anybody know if the file can be converted back to text as it was originally? Any help is appreciated.

6 Kommentare

1) Find your_file_name.asv (ASV file, only works if you have that)
2) Copy that file and paste it
3) Change .asv to .m
4) Relax
@Karan Patel that's what Image Analyst suggested 3 years ago

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Do you have a version with an .asv extension? If so, you can recover it from that last autosaved version.

2 Kommentare

I couldn't find any .asv files.. so, I guess there is no other way to recover the code.. Thanks for your suggestion.
To avoid future problems, turn on autosaving in the preferences on the Home tab of the tool ribbon:

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Your code is gone. It has been overwritten with information that has to do with Spotlight metadata queries.
The only part of your code that can be recovered is
clear all;clc;close all
As you appear to be using OS-X, I suggest using TimeMachine to restore the file.

Kategorien

Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by