clc command window restore

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 Commento

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.

Accedi per commentare.

Risposte (2)

Sam Chak
Sam Chak il 1 Ott 2023
Modificato: Sam Chak il 1 Ott 2023

0 voti

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 il 1 Ott 2023
Modificato: Bruno Luong il 1 Ott 2023

0 voti

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.

Categorie

Prodotti

Release

R2023a

Richiesto:

il 1 Ott 2023

Modificato:

il 1 Ott 2023

Community Treasure Hunt

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

Start Hunting!

Translated by