How can I animate the plot in the app designer UIAxes?
38 views (last 30 days)
Show older comments
How can I animate the plot in the app designer UIAxes?
0 Comments
Accepted Answer
Adam Danz
on 7 Dec 2021
>How can I animate the plot in the app designer UIAxes?
Animation in UIAxes is no different than animation in regular axes other than the need to supply the uiaxes handle to plotting functions.
This may help you get started: https://www.mathworks.com/matlabcentral/answers/502437-how-do-i-show-a-line-being-created-like-an-animation-between-two-points-inside-a-plot#answer_412497
If you have a specific question, show us what you've got so far and we can probably help straighten things out.
3 Comments
Voss
on 1 Nov 2023
% create an animated line in app.UIAxes, with no data:
my_line = animatedline(app.UIAxes);
% or, create an animated line in app.UIAxes, with data x, y:
my_line = animatedline(app.UIAxes,x,y);
The available syntaxes for calling animatedline are listed at the top of this page:
More Answers (0)
See Also
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!