Plotting Stem Plots with animatedline
조회 수: 4 (최근 30일)
이전 댓글 표시
I can use animatedline to plot linear graphs. Fine. But how do I use animatedline to plot stem plots?
댓글 수: 0
답변 (1개)
KSSV
2022년 10월 14일
x = linspace(0,4*pi,1000);
y = sin(x);
for i = 1:length(x)
stem(x(1:i),y(1:i))
axis([min(x) max(x) min(y) max(y)])
drawnow
end
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!