How do I plot the first 200 points of each vector on the same graph?

조회 수: 10 (최근 30일)
cody madsen
cody madsen 2018년 11월 14일
답변: madhan ravi 2018년 11월 14일
what would I have to put in the plot command in order to plot only the first 200 points of each vector vs. t on the same graph?
load handel
sound (y,Fs)
%%
multiplier = 0.10;
noise = randn(length(y),1) * multiplier;
%%
sound_w_noise = y + noise;
sound (sound_w_noise, Fs)
t = 1:length(y);
plot(???)

채택된 답변

madhan ravi
madhan ravi 2018년 11월 14일
plot(t(1:200),y(1:200))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by