What's the formula behind the coefficients calculation of the Filter Designer?

27 ビュー (過去 30 日間)
Andrea Verdecchia
Andrea Verdecchia 2018 年 7 月 27 日
コメント済み: Honglei Chen 2018 年 7 月 27 日
I'm using the Filter Designer to find coefficients for a Butterworth digital filter on microcontroller. How can I calculate them without the use of the app? Given the sample rate and the cut-off frequency, what's the formula find the values of a0, a1, a2, b0, b1, b2 and the gains for every section?

回答 (2 件)

Star Strider
Star Strider 2018 年 7 月 27 日
This is covered in all the signal processing texts I’ve ever used. A good discussion is given in DESIGN OF a 5th ORDER BUTTERWORTH LOW-PASS FILTER USING SALLEN & KEY CIRCUIT (link). It first discusses the calculation of the filter coefficients for a lowpass Butterworth design, and then component calculations if you want to implement it in hardware.
Since I get the impression that you want to implement this in software as a discrete filter, the easiest way to do that is with the Bilinear transform (link).
If you want to avoid all of these complications, use the MATLAB buttord (link) and butter (link) functions, (and related functions to transform them into second-order-section or other implementations if you want to do that).

Honglei Chen
Honglei Chen 2018 年 7 月 27 日
編集済み: Honglei Chen 2018 年 7 月 27 日
If you go to File -> Generate MATLAB Code, you will be able to get a script containing functions that used by the app to design the filter. You can then run that script without the app.
HTH
  2 件のコメント
Andrea Verdecchia
Andrea Verdecchia 2018 年 7 月 27 日
ok, but i need the formula to find the coefficients.
Honglei Chen
Honglei Chen 2018 年 7 月 27 日
You can find those information in reference pages. For example, you will use butter to design Butterworth filter. It's reference page is at
There is an algorithm section pointing to different functions and in those functions, there are reference listed. You can also find similar information online, such as,
HTH

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by