animation of figures in sequence
8 views (last 30 days)
Show older comments
Hi! Let me explain the problem.
I have several figures inserted into a single graph using "hold on" and "hold off" and I display them in steps using the "pause" command.
I want to create an animation of these figures in sequence.
How can I do it?
0 Comments
Answers (1)
KALYAN ACHARJYA
on 24 Dec 2020
Edited: KALYAN ACHARJYA
on 24 Dec 2020
2 Comments
KALYAN ACHARJYA
on 24 Dec 2020
Example:
x=0:0.1:10;
for i=1:length(x)
y=randi(10)*log(x);
plot(x,y)
drawnow
pause(0.03);
end
Do you want to save the plot all frames as gif?
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!