How can I recover Matlab files?

24 views (last 30 days)
Hdez
Hdez on 15 Dec 2020
Commented: Star Strider on 16 Dec 2020
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 Comments
Image Analyst
Image Analyst on 16 Dec 2020
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.

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 16 Dec 2020
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 Comments
Star Strider
Star Strider on 16 Dec 2020
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.

Sign in to comment.

Categories

Find more on Startup and Shutdown 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!

Translated by