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

댓글 수: 5

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

댓글을 달려면 로그인하십시오.

 채택된 답변

Honglei Chen
Honglei Chen 2011년 11월 18일

0 개 추천

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 11월 18일

1 개 추천

imresize() in the Image Processing Toolbox

댓글 수: 2

Baba
Baba 2011년 11월 18일
unfortunately i don't have that toolbox
Walter Roberson
Walter Roberson 2011년 11월 18일
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.

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2011년 11월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by