Biquad IIR filter design with Q factor sorting?
27 views (last 30 days)
Show older comments
I have designed biquad IIR filter:
h = fdesign.lowpass('N,Fc', 8, 10e3, 100e3); % 4-biquad with 100kHz sampling rate and 10kHz cutoff freq
Hd = design(h, 'butter');
Hd_sos = convert(Hd, 'df2sos');
I checked Q-factor and realized the first sos section has the largest Q and the last sos has the smallest. I want the smallest Q to be first and the lagest to be the last sos. Any suggestion to do so?
0 Comments
Accepted Answer
Paul
on 21 Jan 2026 at 22:29
Edited: Paul
on 21 Jan 2026 at 22:31
Hi Jay,
h = fdesign.lowpass('N,Fc', 8, 10e3, 100e3); % 4-biquad with 100kHz sampling rate and 10kHz cutoff freq
Hd = design(h, 'butter');
Hd is already in DF2SOS form
Hd.FilterStructure
so the call to convert seems to be redundant (unless it does something else that I'm missing.
Hd_sos = convert(Hd, 'df2sos');
Hd_sos.FilterStructure
We see that
[isequal(Hd.ScaleValues,Hd_sos.ScaleValues), isequal(Hd.sosMatrix,Hd_sos.sosMatrix)]
More Answers (0)
See Also
Categories
Find more on Digital and Analog Filters in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!