Green box instead of code upon bad termination

Hi everyone,
I hope this question can be addressed quickly as my assignment is due soon. After compiling my code last night and having success, I saved my project and closed everything down for the night. This morning, I ran my code and it essentially froze my computer: I waited ~2min for a response, nothing so I tried opening task manager - nothing after several more minutes. My only option seemed like a hard reset. I load up the project and.. my code is missing. Everything. Instead, I have a single green box in the editor (see attached). What are my options here? Lastly, how do I prevent this from happening again?
Thank you

2 commentaires

Rik
Rik le 4 Nov 2021
Look for the auto-save file (the .sav), which might be gone by now. (open it with notepad instead of the Matlab editor) I personally only work on cloud-synced folders for anything important, but that advice is of course too late for you now...
Chris
Chris le 4 Nov 2021
Your advice has worked! I realized my cloud sync has iterative saving and I was successfully able to restore it!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Version

R2021b

Question posée :

le 4 Nov 2021

Commenté :

le 4 Nov 2021

Community Treasure Hunt

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

Start Hunting!

Translated by