I know this might easy for you, but I won't to countdown from 10:1:-1 i know to to do this loop. what I don't know is how to pause each number by 1 second
조회 수: 49 (최근 30일)
이전 댓글 표시
Currently the numbers count down as fast as the computer can run the code. To make it a real countdown, add a pause of 1 second inside the loop, after printing the number. Now when you run the program it should print the same thing as before, but with a one-second delay after every number.
댓글 수: 1
Robert U
2018년 8월 31일
Hi,
have a look at pause() function in documentation: https://de.mathworks.com/help/matlab/ref/pause.html
Kind regards,
Robert
답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!