- Windows: Windows File Recovery
- MacOS: View and restore past versions of documents on Mac
- Linux: How to Restore Previous Versions of a File on Any Operating System
How can I restore or recover a MATLAB file that I accidentally deleted or lost?
322 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2020 年 6 月 22 日
編集済み: MathWorks Support Team
2023 年 12 月 27 日
How can I restore or recover a MATLAB script or function (.m file) that I accidentally deleted or lost?
採用された回答
MathWorks Support Team
2023 年 12 月 27 日
編集済み: MathWorks Support Team
2023 年 12 月 27 日
By default, when you modify files in the Editor, MATLAB saves a backup copy every five minutes using an .asv extension. For example, "filename.m" would have a backup file name of "filename.asv." If you have accidentally deleted your MATLAB file, try recovering the unsaved changes by opening the backup copy of the file "filename.asv", and saving it as "filename.m".
You can find more tips for recovering MATLAB files after an abnormal termination on the page below:https://www.mathworks.com/help/matlab/matlab_env/recovering-data-after-an-abnormal-termination.html
If you have a backup system in place, such as Microsoft File History, Mac Time Machine, or a cloud backup service (e.g. MATLAB Drive Connector, Microsoft OneDrive, or Dropbox), you can recover your files from there.
If this does not help, it may be possible to restore previous versions of your files if your operating system has saved them. To do this, try the following articles:
If your operating system has not saved any past versions of the file, then unfortunately it is very difficult, if not impossible to recover the lost file. As a last resort, you can try Third-Party Recovery Tools or Professional Data Recovery Services.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!