How can i use the Enter button to run the program?
古いコメントを表示
I want to run my program everytime i press enter.
3 件のコメント
OCDER
2018 年 9 月 28 日
Sounds like a bad idea for a key-shortcut... More details?
Juan Pablo Camacho Cueter
2018 年 9 月 28 日
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
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!