Borrar filtros
Borrar filtros

How can I use a variable in Quiver?

2 visualizaciones (últimos 30 días)
Huiseon Song
Huiseon Song el 19 de Sept. de 2018
Respondida: Zenin Easa Panthakkalakath el 26 de Sept. de 2018
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!

Respuestas (1)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath el 26 de Sept. de 2018
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:

Categorías

Más información sobre Animation en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by