'addpoints' animation with a control slider
7 ビュー (過去 30 日間)
古いコメントを表示
Somehow making an animation with 'addpoints' enables a control slider for the user to slide back and forth to view the animation, but sometimes the slider disappears. Which syntax ensures that it appear?
10 件のコメント
Adam Danz
2024 年 2 月 13 日
I'm not aware of a slider that automatically appears after running the code you shared.
If this is run in an app or live script, a uislider could be added, though.
回答 (1 件)
Vidip Jain
2023 年 3 月 20 日
The slider you are referring to is called a "data cursor" in MATLAB. By default, it appears when you create a plot with a line object, and you hover over the line with your mouse cursor. However, it may not always appear when using “addpoints” to animate a plot.
To ensure that the data cursor appears, you can use the “datacursormode” function in MATLAB. This function allows you to enable or disable the data cursor mode for a specific plot or all plots in a figure.
You can also customize the appearance and behavior of the data cursor using various options available in the “datacursormode” function.
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!