An alternative way to cascade filters
Show older comments
Dear all
I hope this finds you well. I am trying to cascade the following two filters:
b = [1 -1/2 1 1/2]; % IIR filter numerator
a = [1 0 -1]; % IIR filter denominator
fvtool(b, a);
bc = [1 0 -1]; % COMPENSATOR numerator
ac = 1; % COMPENSATOR denominator
fvtool(bc, ac);
Cascading the above described filters results in a FIR filter as the poles of the IIR filter lying on the unit circle are cancelled out by the zeros on the unit circle of the COMPENSATOR; therefore, the overall transfer function of the filter is reduced to
fvtool(b, 1); % overall filter
The Filter information provided by the Filter Visualization Tool are correct. However, when cascading the filters this way instead
IIR = dfilt.df2(b, a);
COM = dfilt.df2(bc, ac);
Hov = dfilt.cascade(IIR, COM);
magnitude response, phase response, etc. provided by the Filter Visualization Tool are correct but the Filter information says it is an IIR filter.
Is there an alternative way to cascade two filters?
Thank you
Answers (0)
Categories
Find more on Digital Filter Design in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!