How can I recover Matlab files?
32 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/462405/image.png)
2 件のコメント
Image Analyst
2020 年 12 月 16 日
Exactly what do you mean by "crashed"? Did your drive fail and you needed to replace the drive? If so, were you able to retrieve some files from your backup drive? Is the folder "AppData\Local\Temp\Temp1_heat_2d.zip\" on your backup drive? I imagine so if your main drive crashed. But it may be an old version unless you backed it up very recently.
Depending on the nature of the drive crash, it may be possible to recover non-damaged files through the use of a service company, but it will be very expensive - probably thousands of dollars.
Why is there a screenshot of your MATLAB and program? I guess you created it, but why? Anyway, there is no way to recover your entire m-file from a screenshot of any portion of your program. OK, well there is, if you crop the image and run ocr() in the Computer Vision Toolbox on it but I'm assuming you don't want to do that, and if there is any code not shown in the screenshot, it obviously won't recover that. Anyway, for your 12 line program shown in your screenshot, you have only one line of code, and that runs some function or script called Assignment. I don't know if that file exists either. Again, probably not if your drive crashed.
So I guess it's just a hard lesson in the need to maintain backup copies of your files.
回答 (1 件)
Star Strider
2020 年 12 月 16 日
For what it’s worth, I had a desktop crash a few months ago. Fortunately, the C:\ drive was a SSD, and I was able to get a USB connector for it online, so I was able to recover all my user files, including all my MATLAB document files (although the OS and some other files are toast). I can’t determine if that is possible with your system (that may require a connector for an external HDD instead that you may need to buy online), however it worked for me and I was able to install all my user files on my new desktop.
You will also need to go online and deactivate MATLAB on your crashed laptop so you can use that installation on your new machine (assuming that you cannot recover your crashed laptop). See How can I deactivate MATLAB on a machine I cannot access? to do that.
And yes, backing up your MATLAB document files (and everything else you may need, including your password files) to a SD chip with the appropriate capacity peroidically is definitely worthwhile.
2 件のコメント
Star Strider
2020 年 12 月 16 日
I assume that if you have Windows, you already tried to find them with File Explorer. (If you have not, that is the next step. I would search ‘This PC’ for files with a ‘.m’ extension, so *.m.)
Unless you have been affected by ‘malware’ of some type, I have no idea what the problem could be.
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!