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

9 views (last 30 days)
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(???)

Accepted Answer

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

More Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!