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

10 vues (au cours des 30 derniers jours)
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(???)

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by