MATLAB Answers

Filter Designer to create FIR filters

11 views (last 30 days)
I am trying to create the filters below with the Filter Designer application in Matlab, but I can't find the settings for the Blackman and Hamming windows. Can someone tell me where they are?
Design a FIR filter with Blackman window. Set Fc =1800 Hz and Fs = 8Khz. Keep increasing order of the filter until your first stopband null coincides to stopband edge frequency of 2 Khz.
Design a FIR filter with Hamming window. Set Fc =1800 Hz and Fs = 8Khz. Keep increasing order of the filter until your first stopband null coincides to stopband edge frequency of 2 Khz.

  0 Comments

Sign in to comment.

Accepted Answer

Samatha Aleti
Samatha Aleti on 6 Nov 2019
You can design FIR filter with specific windowing technique using fir1 function in MATLAB. As an example, for Hamming window:
b = fir1(48,[0.35 0.65]); % b: filter coefficients
After running this command, the filter coefficients get stored in variable “b”.
You can then import this filter in the Filter Designer app. To import the filter, go to Filter Designer app and do the following:
  • Click on File >> Import Filter from Workspace
  • Select the filter structure
  • Give the variable name (“b” here) in which the filter coefficients are stored
  • Specify the sampling frequency
  • Click on Import Filter
Refer the following link, to know how to use “fir1” function:
Following are the documentation links for “filerDesigner” app and “windowDesigner” app:

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.