plot a discrete signal

4 visualizaciones (últimos 30 días)
ayman daraghmah
ayman daraghmah el 30 de Sept. de 2015
Editada: Adam el 30 de Sept. de 2015
[x,fs2,nbits2]= wavread('w.wav');
stem(x);
I want to plot a 20 samples section of x.

Respuesta aceptada

Adam
Adam el 30 de Sept. de 2015
Editada: Adam el 30 de Sept. de 2015
stem(x(1:20))
will plot the first 20 samples of x, assuming it has that many. Or
stem(x(345:364))
etc, to plot some other arbitrary section of 20 samples.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by