What are the steps for making a 'fft filter'?

조회 수: 16 (최근 30일)
Kay
Kay 2011년 9월 22일
Hi,
I am new to the fft filter and I want to know the steps of building a fft filter, e.g., what I need to know before I build this filter. In addition, my Matlab has Signal Processing Toolbox installed.
I am given a sequence with 131072 samples, the sampling rate is 500Hz. Also, I want to filter this sequence using low pass filter with cutoff frequency=20Hz.
My question is about the syntax of "fftfilt", how do I generate the coefficient vector b by providing the cutoff frequency(the freq range that i'm interested).
Thanks for your help, Kay

답변 (2개)

Honglei Chen
Honglei Chen 2011년 9월 23일
Hi Kay,
You need to first design the filter to get coefficient b and then pass it into the fftfilt. For example, assume you need a 10th order filter with cutoff of 20 Hz and sampling frequency of 500 Hz, you can do
h = fdesign.lowpass('N,Fc',10,20,500);
hd = design(h);
x = rand(131072,1);
y = fftfilt(hd.Numerator,x);
HTH

Arturo Moncada-Torres
Arturo Moncada-Torres 2011년 9월 23일
Try checking this previous post. Although it is for a HPF, the main steps are practically the same ;-)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by