clc command window restore

36 次查看(过去 30 天)
Rana
Rana 2023-10-1
Is there anyway I can get back the information I had in my Command window after using "clc" and closing the app?
I'm pretty new to matlab and I thought by saving the file I save the command windows information as well as the variables.
  1 个评论
Walter Roberson
Walter Roberson 2023-10-1
Note by the way that the command window is not considered to be associated with any particular .m file . If you switch editor tabs to get to a different file, you do not get a different command window.

请先登录,再进行评论。

回答(2 个)

Sam Chak
Sam Chak 2023-10-1
编辑:Sam Chak 2023-10-1
You can press the Up Arrow key (↑) to navigate the Command History.
However, unsaved variables and data in the Workspace will be cleared after closing MATLAB. You can save variables from workspace to file by using the save() command.

Bruno Luong
Bruno Luong 2023-10-1
编辑:Bruno Luong 2023-10-1
From MATLAB windows go to the menu Layout -> Command History -> Dock. You then have a tab "Command History" appears on the right side. Click on that you have then a big chunk of cmmand history that you can copy and past. Click on the tab gain will minimize it.

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by