Animating wave equation in Matlab

Hi there.. I got an assignment on string vibration on PDE where I'm asked to Animate the standing wave,, I managed to get the equation but donno how to Animate it in Matlab,, I'll be grateful to anyone who can help..
file is attached..

1 comentario

Leo
Leo el 15 de En. de 2014
You could use a for loop i.e.
t=0
for t < T
plot(x,U(x,t))
t=t+dt
pause(0.5)
end
which will animate between time 0 and T.

Iniciar sesión para comentar.

Respuestas (1)

Categorías

Más información sobre Animation en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Nov. de 2013

Respondida:

el 15 de En. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by