필터 지우기
필터 지우기

plot two waveforms at the same time

조회 수: 18 (최근 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개)

카테고리

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