How can I save, close, and then reopen a Matlab file later so that I can resume at the same workspace when I closed the file?
Mostra commenti meno recenti
How can I save, close, and then reopen a Matlab file later so that I can resume at the same workspace when I closed the file?
Risposta accettata
Più risposte (1)
Michael Haderlein
il 7 Mag 2015
0 voti
What do you mean with closing the file?
You can save the workspace with mat-files. save('matfile.mat') will save the current workspace in matfile.mat. load('matfile.mat') will load the respective workspace.
2 Commenti
Chanchal Sadhu
il 8 Mag 2015
Michael Haderlein
il 8 Mag 2015
Yes, mat-files save the workspace, not the command window. You might be looking for the diary function. Not sure if it is possible to reset the command window exactly as it was (or how much effort it would take).
Categorie
Scopri di più su Workspace Variables and MAT Files in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!