How do I save animated line graph in GIF figure format

3 Ansichten (letzte 30 Tage)
srinivas REDDY
srinivas REDDY am 16 Aug. 2020
Kommentiert: srinivas REDDY am 18 Aug. 2020
I want to save the out put figure into GIF figure format kindly help
h = animatedline;
h1=animatedline('Color','r','Marker','o');
h2=animatedline('Color','g','Marker','o');
axis([0,2,-1,3])
x = linspace(0,2,100);
y = x.^2-1;
x1=0:0.001:1.0;
x2=2:-0.001:1.0;
x3=-1:0.001:0;
y1= x1.^2-1;
y2=x2.^2-1;
grid on
for k = 1:length(x)
addpoints(h,x(k),y(k));
drawnow
hold on
end
for k = 1:length(x1)
addpoints(h1,x1(k),y1(k));
drawnow
hold on
end
for k = 1:length(x2)
addpoints(h2,x2(k),y2(k));
drawnow
hold on
end

Antworten (0)

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by