how to generate waveform graph?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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..
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161422/image.png)
0 commentaires
Réponse acceptée
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)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Waveform Generation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!