plot two waveforms at the same time

18 次查看(过去 30 天)
Hi
Is there a way to plot two waveforms at the same time in a figure? Please let me know.
Thanks in advance

采纳的回答

Wayne King
Wayne King 2011-10-28
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 个)

类别

Help CenterFile Exchange 中查找有关 Acoustics, Noise and Vibration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by