MATLAB: How to delete or modify a command from de Command Window

edit a command

Hello, I'm getting started with Matlab. I've just put a command and executed it, but then I want to change it because I typed incorrectly, but the program does not allow me to do that. How can I rearrange the command that I previously put? Thank you.

Best Answer

In the command window, type the up-arrow key. The previous command will show up in the input buffer. You can go further back by pressing up-arrow more times. You can edit what comes up and finally press return to execute the modified command.
Related Question