Low-pass FIR Filter

Medium MATLAB DSP
Solve this problem

Implement a low-pass FIR filter design in MATLAB using windowing. Return filter coefficients.

Constraints

  • Function: h=fir_lp(fc,N).
  • Use fir1.
  • fc normalized.
  • N + 1 taps.
  • Hamming window.
Starter codeMATLAB
1function h = fir_lp(fc,N)2% TODO3end