plot two waveforms at the same time
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
Is there a way to plot two waveforms at the same time in a figure? Please let me know.
Thanks in advance
0 commentaires
Réponse acceptée
Wayne King
le 28 Oct 2011
x = randn(1e2,1);
y = randn(1e2,1);
t = 1:100;
plot(t,x,t,y);
legend('x-waveform','y-waveform');
% or
plot(t,x); hold on;
plot(t,y,'r');
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Acoustics, Noise and Vibration 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!