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: