'addpoints' animation with a control slider
Mostra commenti meno recenti
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 Commenti
feynman feynman
il 19 Dic 2022
Adam Danz
il 19 Dic 2022
Could you attach a minimal working example that reproduces the problem?
Also please fill in your release information in the right side panel of this thread.
feynman feynman
il 19 Dic 2022
feynman feynman
il 19 Dic 2022
Steven Lord
il 19 Dic 2022
You have to specify a product before you can specify a release.
feynman feynman
il 20 Dic 2022
feynman feynman
il 7 Feb 2024
Adam Danz
il 13 Feb 2024
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.
feynman feynman
il 15 Feb 2024
Risposte (1)
Vidip Jain
il 20 Mar 2023
0 voti
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.
1 Commento
feynman feynman
il 27 Apr 2023
Categorie
Scopri di più su Animation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!