# Filter Design using FIR method question

1 view (last 30 days)
Jonathan George on 30 Apr 2022
Answered: Chandra on 6 May 2022
I'm aware that the window method of FIR filter design samples the time-domain function obtained when an inverse Fourier transform of an ideal 'brickwall' filter is obtained. The samples produced are subsequently truncated (and possibly smoothened) using a window function.
How would I then use this technique for filter design to determine the coefficients of a 14th order low pass filter which has a cutoff frequency of 95Hz using a rectangular window function? The cutoff frequency corresponds to the frequency at which the magnitude of the 'brickwall' filter (from which the filter is derived) transitions from 1 to 0.
The filter is designed to work for signals sampled at 1000Hz.
Additionally, how would I sum the magnitudes of these coefficients? Would sum(x) suffice?
Sulaymon Eshkabilov on 1 May 2022
Have you viewed this DOC?

Chandra on 6 May 2022
Hi,
use fir1 function to get the coefficients and use freqz for frequency response or use filter function to filter the signal
The filter order and cut off frequency can be mentioned in fir1.
b = fir1(14,0.00475,'low');% window type can also be represented after the low
you refer to this link for brickwall filter response

### Categories

Find more on Audio Processing Algorithm Design in Help Center and File Exchange

R2021b

### Community Treasure Hunt

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

Start Hunting!

Translated by