How can i use the Enter button to run the program?

I want to run my program everytime i press enter.

댓글 수: 3

OCDER
OCDER 2018년 9월 28일
Sounds like a bad idea for a key-shortcut... More details?
Why is it a bad idea?
OCDER
OCDER 2018년 9월 28일
Because Enter alone is used many times for editing code. See Ankur's Answer below, as Ctrl+Enter would prevent confusing Enter-for-editing with Enter-for-running-codes. But note that Ctrl+Enter would treat the function as a script, hence you'll get the "Error: Function definitions are not permitted in this context" message.

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

답변 (1개)

ANKUR KUMAR
ANKUR KUMAR 2018년 9월 28일

2 개 추천

Use Ctrl+Enter to run the your program.
Actually its there to run the current section of your program. If you didn't split your program into sections, then you would use Ctrl+Enter to run the complete program.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2016a

태그

질문:

2018년 9월 27일

댓글:

2018년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by