필터 지우기
필터 지우기

How can i space out my code and interact with the prompt?

조회 수: 1 (최근 30일)
Jack
Jack 2014년 7월 3일
댓글: Jack 2014년 7월 3일
In an m-file when run is clicked all my code executes at the same time, is there any way in which I can space out or delay some code? Also what is the shortcut to enable the m-file to interact with the prompt, for example if the m-file asked a question eg. 12 times 2, and at the prompt the correct answer was given how could I then reply through the m-file? Thanks,

채택된 답변

Robert Cumming
Robert Cumming 2014년 7월 3일
To input data from the command prompt use:
help input
To pause a function you can use:
help keyboard
You might also want to learn about debugging.
help dbstop
or hit F12 on the line you want the code to stop on.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by