How can I recover Matlab files?

조회 수: 25 (최근 30일)
Hdez
Hdez 2020년 12월 15일
댓글: Star Strider 2020년 12월 16일
Hello everyone. My laptop crashed and my codes for an assignment were saved on AppData\Local\Temp\Temp1_heat_2d.zip\Assignment.m. However, when I open the folder Temp1_heat_2d.zip the code Assignment.m is not there but I still get the information visible on the screenshoot. Anyone can help me?? thank you
  댓글 수: 2
Matt Gaidica
Matt Gaidica 2020년 12월 16일
Can you attach the ZIP file?
Image Analyst
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
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
Hdez
Hdez 2020년 12월 16일
My laptop crashed but it automatically turned on again. When it turned on, I had access to my code via last open files. However, a few days later I went to access the code again and it dissapeared, it is not anywhere.
Star Strider
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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by