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?
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Chanchal Sadhu
el 7 de Mayo de 2015
Comentada: Walter Roberson
el 9 de Mayo de 2015
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?
3 comentarios
Respuesta aceptada
Walter Roberson
el 8 de Mayo de 2015
How closely does it need to be reproduced? For example does the previous command output have to be brought back? If you were in the middle of debugging something, does the program state need to be recreated and the restoration leaves you ready to pick up where you left off?
Mathworks does not provide any tools able to save everything about a MATLAB session for later restoration. (It can be especially difficult to save and restore the state of files that are in use.)
Is your purpose to be able to save the state of a calculation so that it can be restarted from its last "checkpoint" ?
2 comentarios
Walter Roberson
el 9 de Mayo de 2015
Mathworks does not provide a general checkpoint facility. The Distributed Computing package does checkpoint its operations automatically, though.
Más respuestas (1)
Michael Haderlein
el 7 de Mayo de 2015
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 comentarios
Michael Haderlein
el 8 de Mayo de 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).
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!