What is the asv file in MATLAB and how do I open it?
Show older comments
When I edit a file, another file with the same base file name but with an ".asv" extension is automatically saved in the same folder. What is it?
Answers (2)
Image Analyst
on 26 Aug 2013
18 votes
It's an autosaved file, like a backup of the prior version you worked on. If your .m file got lost or destroyed, I think you can rename the .asv file to .m and have back your prior version.
8 Comments
Nagarajan Ramaswamy
on 23 Jun 2014
But the .asv file is not available for all the files in my workspace.is there any condition that it will be available only for specific files
Sean de Wolski
on 23 Jun 2014
When you edit a file and don't save it for a period of time.
Image Analyst
on 23 Jun 2014
It will be created only for m-files (not for any other files), and only on files that you've opened in the editor.
GMD Baloch
on 22 Apr 2019
I was doing my work on a m file for last 4 hours and I did not save it. Now I accidentally turned MATLAB off and is there anyway to recover my code?
Lars Abrahamsson
on 27 Oct 2020
In which Matlab version were the .asv-files introduced?
Walter Roberson
on 27 Oct 2020
No later than R14. My memory is that they existed in R13 as well. (R12 was a long time ago and my memory archives would take longer to unearth.)
Sandor Szabo
on 2 Apr 2022
It exists in R2022a (9.12.0.1896817) Mar 04 2022.
Brian de Grenus
on 1 Mar 2023
Working well for me the tips of rename the extension from .asv to .m Thanks !
Jose L. Diaz Durand
on 30 May 2022
0 votes
what does asv mean?
2 Comments
Image Analyst
on 30 May 2022
It's a three letter extension meant to signify AutoSave.
Steven Lord
on 1 Mar 2023
If you'd prefer a different extension or to customize the behavior of backup file creation and retention in certain ways, you can change the behavior in the Preferences. See the section on Backup Files preferences on that documentation page.
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!