How to automatically play a Slider- bar when push button presses in GUI?
2 ビュー (過去 30 日間)
古いコメントを表示
I have created a GUI and in that I wanted to use a play push button to automate the Slider Value. After that I wanted to use a stop button to stop the sliding. Kindly suggest your ideas to implement this functionality in GUI?
0 件のコメント
回答 (1 件)
Austin Decker
2022 年 5 月 26 日
You could use a timer to do this. Basically, when you push the button, you can start a timer with whatever period you want who's timer function increments the slider. When you push the button again, you can stop and delete the timer. Be sure to delete the timer either when you are done using it or when the app closes as this can cause issues. Check the documentation for timer calling syntax.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!