MATLAB Answers

0

Filter Designer to create FIR filters

Asked by Nathan Jaqua on 3 Nov 2019
Latest activity Answered by Samatha Aleti on 6 Nov 2019 at 10:34
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.

1 Answer

Answer by Samatha Aleti on 6 Nov 2019 at 10:34

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.