.asv files in matlab

Sepideh Abadpour picture Sepideh Abadpour · Mar 2, 2012 · Viewed 31.7k times · Source

When I save a .m file in a folder, MATLAB autosaves a .asv file in the same folder.

I opened this file and I found that it contains my code from the beginning, ignoring what I have deleted.

  • What is the use of this file?
  • What's the risk if I delete that file?

Answer

Smash picture Smash · Mar 2, 2012

A .asv file is just what you said, an "AutoSave" file. It's just there so that you don't lose all your code if your computer crashes/shutdown. You can delete it whenever you want.

If you find them annoying you can go to File/Preferences/-->"Editor/Debugger" --> Autosave and turn it off.