MatLabをrunする際、一定の速度で走らせることはできますか?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
KO
le 11 Mai 2021
Réponse apportée : Shunichi Kusano
le 12 Mai 2021
例えば1行あたり10msごとにコマ送りするように実行(run)させることはできますか?
Réponse acceptée
Hernia Baby
le 11 Mai 2021
pause関数を使うのはいかがでしょうか? https://jp.mathworks.com/help/matlab/ref/pause.html
0 commentaires
Plus de réponses (1)
Shunichi Kusano
le 12 Mai 2021
念のため補足いたしますとタイマーという機能もあります。
pauseですと10msの空白が約束されますが、処理時間分のバッファが生じるので、実行周期は10ms+αとなります。
が、timer使うと10msごとの実行が可能です。ご参考までに。
0 commentaires
Voir également
Catégories
En savoir plus sur ループと条件付きステートメント dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!