The code I wrote in the last ten hours has disappeared after closing MATLAB 2020b

Dear Friends
I have MATLAB 2020b on my laptop, I started writing my code about ten hours ago, and after this time, by closing and opening the program once, I realized that all the files on the editor panel had returned to the state of ten hours ago and all the history of the program has been deleted for this period of time, while I have run and saved my file many times
Has anyone encountered this problem or is there a solution to it?

5 Kommentare

On the toolbar, click Open and find your file there, you might've working on the same filename but in different folder.
If you are using Windows, check in:
C:\Users\<YourUserName>\MATLAB\ ...
It should still be there, even if the MATLAB Editor is having problems finding it. If that is not the directory you use for your files, and you know its file name, it may be necesary to use File Explorer to locate it.
If you are using another OS, use the appropriate directory.
Also, see Why will MATLAB not start up properly on my Windows based system? - MATLAB Answers - MATLAB Central since your preferences could be the problem, and it may be necesary to reset them (although this is a last resort action).
I am not posting this as an Answer because it is not one.
Thank you both Mario and Star, but I didn't change anything, I just closed MATLAB and opened it shortly after. I tried your suggested ways. Unfortunately, they didn't work for my problem. I suppose my code is lost and I have to rewrite it.
You have my sympathies!
We may not have thought of everything. I suggest that you Contact Support and see if they have any suggestions. Include the URL to this thread in your note, so that you don’t have to repeat everything and Technical Support knows what you’ve already attempted.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Gefragt:

am 12 Feb. 2021

Kommentiert:

am 13 Feb. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by