Filter löschen
Filter löschen

plot two waveforms at the same time

18 Ansichten (letzte 30 Tage)
Padma
Padma am 28 Okt. 2011
Hi
Is there a way to plot two waveforms at the same time in a figure? Please let me know.
Thanks in advance

Akzeptierte Antwort

Wayne King
Wayne King am 28 Okt. 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');

Weitere Antworten (0)

Kategorien

Mehr zu Acoustics, Noise and Vibration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by