How to open new command window?

I have some codes that I have saved in comand window and I want to create a new command window. So that I don't lose my code. Please help me.

1 Kommentar

Stephen23
Stephen23 am 10 Dez. 2023
"I have some codes that I have saved in comand window.."
The command window does not save any code. It does allow you to enter statements and see displayed results:

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Matt J
Matt J am 10 Dez. 2023
Bearbeitet: Matt J am 10 Dez. 2023

0 Stimmen

You can launch a new Matlab session with its own command window, but the way you are going about saving work is very peculiar. Most people would save their work to a .m or a .mlx file

3 Kommentare

Ahmet Selim
Ahmet Selim am 10 Dez. 2023
If you look closely you will understand that it is indeed untitled.m file.
Matt J
Matt J am 10 Dez. 2023
But you asked about the command window. Did you mean the editor window? I see no open editor windows in your screenshot.
Walter Roberson
Walter Roberson am 10 Dez. 2023
Lower left corner, there is an untitled.m editor session, which appears to be showing an empty file.
Copying out of the command history and pasting into the editor window would permit creating a script that had the commands.

Melden Sie sich an, um zu kommentieren.

Walter Roberson
Walter Roberson am 10 Dez. 2023

0 Stimmen

If you up-arrow at the beginning of a command line, the command history will be shown. You can click and drag your selection to select several lines, and you can control-C (command-C on Mac) to copy those commands into your paste buffer.

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023b

Gefragt:

am 10 Dez. 2023

Kommentiert:

am 10 Dez. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by