グラフをアニメーションで表す際、描画中の点と描画済みの点を分けて表示する方法。
Ältere Kommentare anzeigen
グラフをアニメーションで表す際、描画中の点と描画済みの点を分けて表示できるでしょうか? 例えば、描画している点は'o'とし、描画済みの点はnone(線のみ)とすることです。サークル上になっているグラフのアニメーションも作成したく、線が重なっても現在位置が分かるようにしたいためです。 例えば、以下のような場合です。
figure
axis([-1.5,1.5,-1.5,1.5])
axis square
h = animatedline;
t = 0:0.1:4*pi;
x = cos(t);
y = sin(t);
for k = 1:length(x)
addpoints(h,x(k),y(k));
drawnow
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu ライン プロット 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!