Need to delete the previous points in a plot while plotting continously
Show older comments
During the matlb plotting of some set of points the previous points at previous time step should be deleted and continue with the further plotting.
x = [1,2,3,4,5];
y = [3,4,5,6,7];
plot(x,y,'-o');
so when its plotting for x(2) and y(2), the points of x(1) and y(1) should be deleted/unmarked on the plot.
2 Comments
Dyuman Joshi
on 9 Nov 2023
Just to be clear - Do you to show one point at a time?
If yes, then what should be the time gap between consecutive points? Should the line be in the background?
If no, then please specify.
Charan
on 9 Nov 2023
Accepted Answer
More Answers (0)
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!