Is this the correct way to write the filter equation of a df2sos filter ?
Mostra commenti meno recenti
Hey All,
I could use some help converting filter coefficients to an analytical filter equation. From the Filter Design Tool Fdatool, I obtained the coefficients of a 4th order butterworth filter in "Direct Form II - Second - Order - Section" DF2SOS (see below for coefficients).
After some advice from Honglei Chen, I obtained the following form but I am not sure I have done it correctly:
Incase of 4th order butterworth order, the filter equation becomes
v(n)=x(n)-a1.v(n-1)-a2.v(n-2)-a3.v(n-3)
where a1 - a2 - a3 are the coefficients of my denominator. Then, in the second equation I follow the same reasoning but then using the coefficient of my nominator multiplied by the gain of the section.
y(n)=G[b0.v(n)+b1.v(n-1)+b2.v(n-2)+b3.v(n-3)] This leaves me with 4 equations 2 for each section.
Thank you for your time, Yosef
These are the coefficients:
Section #1
Numerator
1; 2; 1
Denominator
1; 1.949215958025842; 0.953069895327891
Gain: 9.634843255122908e-04
Section #2
Numerator
1; 2; 1
Denominator
1; 1.886609582621506; 0.890339736284024
Gain: 9.325384156294744e-04
Output gain: 1
Risposta accettata
Più risposte (1)
Yosef Harb
il 17 Set 2012
0 voti
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


