Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

1D wave equation

1 view (last 30 days)
Bijaya
Bijaya on 16 Oct 2023
Closed: John D'Errico on 16 Oct 2023
Solve the 1-dimensional wave equation in a fixed length from 0 to L = 1 [L] at the speed of 1 [c] using 200 segments, and initialize two initial waves on the two ends of the string: the left side's wave length is 0.15 [L] and has 1 wave length, and the right side's wave length is 0.25 [L] and has 2 wave lengths. Run the code for 10 [t]. Give me the matlab code for (1) at t=0, and (2) at t=10 [t].
  1 Comment
Torsten
Torsten on 16 Oct 2023
The forum won't do the homework for you. Make an attempt, and if you have a specific question concerning your code, we might be able to help you.
Otherwise, google "MATLAB & 1d wave equation". I'm convinced you will get dozens of hits.

Answers (0)

This question is closed.

Tags

Products

Community Treasure Hunt

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

Start Hunting!