Can i undo command in command window?
Ältere Kommentare anzeigen
Hi there. I'm new to Matlab and i'm learning it's usage with a book that contains exercises. Sometimes it happens that i create a matrix and make several changes to it through different exercises.
If i do something wrong at some point and change the matrix in a way that i shouldn't have. Is there a way of undo only the last command? Or do i have to change the matrix step by step all over again?
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 31 Dez. 2015
Bearbeitet: Sean de Wolski
am 31 Dez. 2015
0 Stimmen
You can use the command history to extract all of the "correct" commands that you've run to create a script. Press the up arrow, or type commandhistory and it will pull it up. From there, you can copy or run ("Evaluate Selection") what you want.

I'd also recommend docking your command history if it's not docked already.
1 Kommentar
Gonzalo Lerner
am 31 Dez. 2015
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!