Using arrow keys for using the previous command

조회 수: 19 (최근 30일)
ashwin TP
ashwin TP 2020년 9월 7일
답변: Walter Roberson 2020년 9월 7일
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
KSSV
KSSV 2020년 9월 7일
You cannot do that in m-file. It is for command window. Also have a look on history.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 9월 7일
Only in the command window.
In a .m file, you can use copy/paste

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by