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!