downsample

is there a matlab command that will filter and downsample data?

5 comentarios

Baba
Baba el 18 de Nov. de 2011
I found a command " decimate ". it seems like it does the trick. I have not tried it yet though.
Walter Roberson
Walter Roberson el 18 de Nov. de 2011
decimate is in the signals processing toolbox
Honglei Chen
Honglei Chen el 18 de Nov. de 2011
Be aware that decimate has limited filtering support, not as flexible as the ones I mentioned below.
Baba
Baba el 21 de Nov. de 2011
yes, i noticed that only a chebishev I and FIR filters are available, as I understand for decimate command.
Baba
Baba el 21 de Nov. de 2011
yep, the only toolbox that i have is the sptool

Iniciar sesión para comentar.

 Respuesta aceptada

Honglei Chen
Honglei Chen el 18 de Nov. de 2011

0 votos

There are several possibilities. You can use either upfirdn or design the filter using fdesign.decimator and then filter your signal.
doc upfirdn
doc fdesign.decimator

Más respuestas (1)

Walter Roberson
Walter Roberson el 18 de Nov. de 2011

1 voto

imresize() in the Image Processing Toolbox

2 comentarios

Baba
Baba el 18 de Nov. de 2011
unfortunately i don't have that toolbox
Walter Roberson
Walter Roberson el 18 de Nov. de 2011
There isn't any command for it in basic MATLAB. You may be able to construct routines for it out of basic MATLAB, depending on how you want to do your filtering. For example, you could fft2, adjust the frequency matrix, then ifft2() specifying fewer points than the original had.

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 18 de Nov. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by