How can I modify a command from the command window?

조회 수: 25 (최근 30일)
SENA KICIKLAR
SENA KICIKLAR 2020년 4월 9일
댓글: darova 2020년 4월 10일
Hello,
I have R2017b version. I am typing commands (in command window) but sometimes I need to change them when I type incorrectly. The program does not allow me to do that. How can I rearrange the command I previously put?
Thank you.
  댓글 수: 5
Geoff Hayes
Geoff Hayes 2020년 4월 9일
I think that so long as you haven't tried to execute the command, you should be able to modify it. But if you have executed the command then - to change it - you will need to copy and paste the original command in and edit it, or use the up arrow key to cycle through the commands until you get to the one you want, or use short-cuts (start typing the first couple of characters of the command that you want to execute).
SENA KICIKLAR
SENA KICIKLAR 2020년 4월 10일
Yes I did it! Thank you very much for your help.

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

답변 (1개)

Walter Roberson
Walter Roberson 2020년 4월 9일
In the command window, press up-arrow repeatedly until it offers you the command you wish to edit. Then use the arrow keys or mouse positioning or key sequences such as control-A or control-E in order to move around in the command and do the editing you want.
  댓글 수: 2
SENA KICIKLAR
SENA KICIKLAR 2020년 4월 10일
Yes, you are right, arrows helped me to modify them. Thank you for your help.
darova
darova 2020년 4월 10일
I think this answer should be accepted

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

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by