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?
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
Michael Haderlein
2015-5-7
0 个投票
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 个评论
Chanchal Sadhu
2015-5-8
Michael Haderlein
2015-5-8
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).
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!