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

10 visualizaciones (últimos 30 días)
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(???)

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by