how can i revert to the previous version of a script
121 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marco Migliori
el 29 de Mayo de 2022
Respondida: Edward Tomanek
el 29 de Mayo de 2022
Hello,
while I was writing my code I accidentally deleted all my script and the autosave meant that I cannot find my code. How can I restore the code to the latest version before saving which erased everything?
0 comentarios
Respuesta aceptada
Edward Tomanek
el 29 de Mayo de 2022
Hello Marco,
Unfortunately, it is likely that you won't be able to retrieve your old code. If you have files with the extension .asv in the directory where you are working it is possible that these could contain your autosaved code. However, this is not guaranteed. In addition, when you close the editor these files are deleted by default, unless you have changed this setting. To try and prevent this from happening in the future, you can go to Home tab -> Preferences -> Editor/Debugger -> Backup Files and untick the "Automatically delete backup files when the Editor closes" option. You can also change the frequency at which the files are autosaved.
Regards
Edward
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!