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

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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Mischa Kim
Mischa Kim 2014년 1월 15일

0 개 추천

Hello Yusuf, check this out.

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

질문:

2013년 11월 29일

답변:

2014년 1월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by