Effacer les filtres
Effacer les filtres

How do I continue a Diary?

5 vues (au cours des 30 derniers jours)
Shane Grimes
Shane Grimes le 26 Jan 2015
Modifié(e) : Cedric le 26 Jan 2015
If I am working on a project and save it to a diary because i am done for the night, how can I open that diary to finish working on it the next day?

Réponses (1)

Cedric
Cedric le 26 Jan 2015
Modifié(e) : Cedric le 26 Jan 2015
Don't use DIARY but SAVE, and save the workspace (or specific variables) in a .mat file:
doc save
doc load
Note that when projects/computations require more than just a few command lines, we usually create a script that we can re-run integrally or partially (see code cells) at any time. I am saying this, because in your question you mention MATLAB diaries, as if you wanted to use them for recording operations and re-using them later. To create a script, click on the button [New Script], copy paste relevant commands from your history (edit, type new commands, etc), and save it as a M-File. You can then open/run this M-file whenever you need to later.
To summarize: for saving code so you can execute it later, save it in a script/M-file ( .m extension). For saving the workspace (variables' states), save/load to/from a .mat file.

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by