Effacer les filtres
Effacer les filtres

how to generate waveform graph?

5 vues (au cours des 30 derniers jours)
sing lai
sing lai le 21 Avr 2014
Commenté : sing lai le 22 Avr 2014
Can anyone help me generate code to produce this waveform graph? This is wave equation that using finite difference method. Thank you very much for helping..

Réponse acceptée

the cyclist
the cyclist le 21 Avr 2014
Here is a simple script that will plot the function sin(L*x). Perhaps you can adapt it to plot your function u(x,t):
L = 0.5;
x = 0 : 0.1 : 60;
u = sin(L*x);
figure
plot(x,u)
  1 commentaire
sing lai
sing lai le 22 Avr 2014
Thank you, i get the idea, but how to apply finite difference method into this code? thanks for your help~

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by