how can i solve the following wave equation analytically and plot figure)?
1 view (last 30 days)
Show older comments
D(u(x,t),t,t)=c^2*D(u(x,t),x,x);
Where u(x,0)=f(x),D[2](u)(x,0)=g(x),u(0,t)=0=u(L,t),L=2
here D[2](u) (x,0) means two times derivative of u with respect to x at t=0
11 Comments
David Goodmanson
on 18 Apr 2020
Hi Pulak,
It doesn't really work that way. Since this appears to be homework, you need to make an effort to use the course material and come up with some code. If the code doesn't work as it should that's all right, because then there will be something to comment on. No one at this site is predisposed to provide code out of thin air for homework problems.
Walter Roberson
on 18 Apr 2020
I had a typing mistake in my code; my conclusions above are not valid.
Answers (0)
See Also
Categories
Find more on PDE Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!