Matlab commands FIR filter

127 Views Asked by At

I have this homework where I have a signal, actually a sum of signals and it is requested to make a FIR filter of it which will cut frequencies above 40 Hz and will have width N=41 and for its construction use a squared window. How I am supposed to do that, I have trouble finding the commands, then it says to print with semilogy the transfer function and the impulse response of the filter. Please help me by providing me the necessary commands and the methodology. Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

Some Matlab functions that may be useful:

  • conv for doing the convolution
  • freqz for plotting frequency response of a discrete-time filter
  • fir1 for designing FIR filters

Note that you have to convert continuous-time frequencies (such as 40 Hz) to discrete-time frequencies, taking into account the sampling rate.