필터 지우기
필터 지우기

How can I use a variable in Quiver?

조회 수: 2 (최근 30일)
Huiseon Song
Huiseon Song 2018년 9월 19일
답변: Zenin Easa Panthakkalakath 2018년 9월 26일
I want to use a variable in Quiver.
like this
if true
t = linspace(0,4*pi,1000);
quiver(0,0,sin(t),cos(t))
end
The final result that I want is an animation a line following the point in quiver.
Thank you!

답변 (1개)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2018년 9월 26일
The above quiver command doesn't seem to be valid as the dimension of the first argument must be equal to that of the third and that of the second argument must be equal to that of the fourth.
Anyway, in order to make an animation, you may use a combination of 'for' loop, 'pause' and 'drawnow' functions. Have a look into the documentation for 'drawnow' here:

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by