How can I get the coefficients using the fir filter and hamming window in y = decimate(x,r,"fir") , so I can simulate this function output in another program?

5 views (last 30 days)
In using this function in matlab y = decimate(x,r,"fir"), I have got an output that I want to create in another program without using matlab. Where can I get the specs, coefficients, and weights to replicate this fir filter and hamming window?

Answers (1)

Abhishek
Abhishek on 24 Jan 2025
I suppose you want to know the filter coefficients generated and the underlying Hamming window coefficients used in the "decimate" function. The following resources would be helpful:
  • The algorithms section of the "decimate" function which mentions the use of "fir1" function to design the FIR filter with given cutoff frequency. Refer to the links for more information:
  • The 'window' argument for the "fir1" function which describes the default Hamming window used, see:

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!