How can I animate a parabolic function?
Ältere Kommentare anzeigen
%Here is my code to plot -x^2 slowly like the comet function:
x = linspace(0,4*pi,100);
for a = linspace(-10,10,200)
y = -(x+a).^2;
plot(x,y,'o')
drawnow;
pause(1/40);
end
So how can I edit it to look like the comet function smoothly?
Antworten (1)
Star Strider
am 5 Jul. 2016
0 Stimmen
Kategorien
Mehr zu Animation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!