Using arrow keys for using the previous command

19 Ansichten (letzte 30 Tage)
ashwin TP
ashwin TP am 7 Sep. 2020
Beantwortet: Walter Roberson am 7 Sep. 2020
I read in a tutorial that
"A short-cut for retyping commands is to press the up-arrow, which will go back to the previously typed command(s). For example, if you decided to assign the result of the expression 6 3 to the variable myvar instead of using the default ans, you could press the up-arrow and then the left-arrow to modify the command rather than retyping the whole statement:"
Is this option available when we type the comands in command window or does this work in the Mfile also. I was unable to make it work in M file
  1 Kommentar
KSSV
KSSV am 7 Sep. 2020
You cannot do that in m-file. It is for command window. Also have a look on history.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 7 Sep. 2020
Only in the command window.
In a .m file, you can use copy/paste

Kategorien

Mehr zu Entering Commands finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by