How to remove one step on command window?
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I just get so used to type on other IDE, like VSC such, so when I type on MATHWORKS command window, I mistyped some equations, when I want to get rid of this equation or switch one of the letter, the Mathworks command window didn't allow me to do that, that's very annoying, anybody knows how to get rid one step as I wanted? thank you.
0 Commenti
Risposte (2)
Image Analyst
il 17 Feb 2023
I would just enter all your commands into a script and run the script. Put clc as the first line of your script to clear the command window. Then make all your changes and each time the command window will show just exactly what you told it to do. If you still want the commands in the command window (in addition to the outputs), you can do
echo on;
Once something has been printed into the command window I don't think there is a way to selectively delete it. (I tried using fprintf() to print a bunch of backspace characters and that didn't work.) If you want you could use diary and then delete it afterwards.
0 Commenti
Walter Roberson
il 17 Feb 2023
Modificato: Walter Roberson
il 17 Feb 2023
To change part of what you previously typed, use up-arrow to retrieve the previous command; you can then use left and right arrows or click in it, and then you can modify that.
You can uparrow repeatedly to retrieve older commands; you are shown some of the most recent previous commands.
If you type a couple of letters and then uparrow then MATLAB will search your command history looking for commands that started with those letters.
If you want to be able to create a more or less clean screen showing everything in place and with ability to modify in the middle, then I suggest you look at LiveScript
0 Commenti
Vedere anche
Categorie
Scopri di più su Entering Commands in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!