is it possible to autosave live script?

19 views (last 30 days)
shahar pery
shahar pery on 6 Feb 2021
Edited: Cris LaPierre on 6 Feb 2021
I'm using the live editor for the autocopmlete feature.
I wrote a live script but my laptop restarted and, unlike regular matlab scripts, it was not saved (at least wasn't tere when I reopened Matlab).
is there a way to automatically save my live script every few minutes\seconds?

Answers (1)

Cris LaPierre
Cris LaPierre on 6 Feb 2021
Edited: Cris LaPierre on 6 Feb 2021
There is not currently a mechanism for autosaving live scripts.
Once you have saved the live script, it will save each time to you run the script. It also appears to save any changes automatically after ~1 minute of no activity.
Some quick testing has not found similar behavior for live scripts you have not saved yet (title is Untitled.mlx).

Community Treasure Hunt

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

Start Hunting!