フィルターのクリア

How can I animate a parabolic function?

3 ビュー (過去 30 日間)
Ezz El-din Abdullah
Ezz El-din Abdullah 2016 年 7 月 5 日
回答済み: Star Strider 2016 年 7 月 5 日
%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?

回答 (1 件)

Star Strider
Star Strider 2016 年 7 月 5 日
Plotting it in real time will probably not result in the smoothness you want.
I would experiment with im2frame and movie.

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by