MatLabをrun​する際、一定の速度で​走らせることはできま​すか?

例えば1行あたり10msごとにコマ送りするように実行(run)させることはできますか?

1 Kommentar

KO
KO am 11 Mai 2021
思い通りにできました。
天才的な回答をしていただきありがとうございました。

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Hernia Baby
Hernia Baby am 11 Mai 2021

0 Stimmen

pause関数を使うのはいかがでしょうか? https://jp.mathworks.com/help/matlab/ref/pause.html

Weitere Antworten (1)

Shunichi Kusano
Shunichi Kusano am 12 Mai 2021

1 Stimme

念のため補足いたしますとタイマーという機能もあります。
pauseですと10msの空白が約束されますが、処理時間分のバッファが生じるので、実行周期は10ms+αとなります。
が、timer使うと10msごとの実行が可能です。ご参考までに。

Kategorien

Mehr zu ループと条件付きステートメント finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!