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

9 Ansichten (letzte 30 Tage)
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(???)

Akzeptierte Antwort

madhan ravi
madhan ravi am 14 Nov. 2018
plot(t(1:200),y(1:200))

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by