# Filter Design using FIR method question

7 visualizzazioni (ultimi 30 giorni)
Jonathan George il 30 Apr 2022
Risposto: Chandra il 6 Mag 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?
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Sulaymon Eshkabilov il 1 Mag 2022
Have you viewed this DOC?

Accedi per commentare.

### Risposte (1)

Chandra il 6 Mag 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
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Image Filtering in Help Center e File Exchange

R2021b

### Community Treasure Hunt

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

Start Hunting!

Translated by