Performs filtering operation using the lattice and the ladder coefficients
y = ladrfilt(K,C,x)
A vector of lattice coefficients
A vector ladder coefficients
A discrete time signal to be filtered
Filtered signal
It performs the IIR filtering operation using the lattice and the ladder coeffcients. It is recursive and considered to be more effcient as compared with the direct filtering operation.
X=[ 3, 7, 1 , 8, 12, 5, -3, -1, 4, 7, 3, 1]; // IIR filter coefficients // Numerator coefficients B=[1, 2, 2, 1]; B=B/sum(B); // Denominator coefficients A=[1,13/24,5/8,1/3]; // Lattice -ladder coefficients [K,C]=dir2ladr(B,A); // Filtering X with K and C Y=ladrfilt(K,C,X); //Direct filtering using B and A Yd=filter(B,A,X) | ![]() | ![]() |