plot two waveforms at the same time

3 ビュー (過去 30 日間)
Padma
Padma 2011 年 10 月 28 日
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by