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?

6 ビュー (過去 30 日間)
John
John 2024 年 12 月 6 日
回答済み: Abhishek 2025 年 1 月 24 日
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?

回答 (1 件)

Abhishek
Abhishek 2025 年 1 月 24 日
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:

カテゴリ

Help Center および File ExchangeHamming についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by