How to recover code of an unsaved m file?

69 次查看(过去 30 天)
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?

回答(1 个)

Image Analyst
Image Analyst 2019-5-25
Look in the folder for a .ASV file with the same base file name.
  2 个评论
Sanders A.
Sanders A. 2022-4-4
What if it was my scratch file that was still untitled? I recognize I am a fool, but here I am...
Thanks!
Sanders A.
Sanders A. 2022-4-5
I guess, for those other fools who seem to find themselves in my shoes...
Under Preferences > Edittor/Debugger > BackupFiles there is an option to "Save untitled files"

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by