I guess my problem is similar to (or the same!)
- https://stackoverflow.com/questions/26202119/matlab-code-turned-into-unreadable-symbols
- https://ch.mathworks.com/matlabcentral/answers/419197-i-saved-an-m-file-in-matlab-and-it-was-overwritten-i-can-t-find-a-way-to-recover-my-file-because-th
I would have two questions for the MATLAB staff:
- Considering the above mentioned links, at least 3 people (myself included) got this problem, losing their works... and accidentally.... Then, why don't you create a command like CTRL+Z to go back to the previous saved versions of m-files, for preventing users to permanentliy overwrite their m-files ?
- By checking the default options in Matlab > Preferences > Editor Debugger > Backup Files, I found that "Close Options: Automatically delete BackUp files when the Editor closes" was ticked (i.e. with a check mark)... This means that if I accidentally close the Editor or Matlab, I automatically lose the only hope to get a back-up file, when I overwrite (accidentally) my m-files... Obviously it is my fault since I did not pay enough attention, but is that default option good ?