<< dir2ladr Signal Processing Supplementary toolbox icceps >>

Signal Processing Supplementary toolbox >> Signal Processing Supplementary toolbox > dir2latc

dir2latc

Computes lattice coefficients from FIR filter coefficients.

Calling Sequence

K = dir2latc(b)

Arguments

b

An array of FIR filter coefficients.

K

An array of all zero lattice coefficients.

Description

It computes the lattice coefficients from the coefficients of a FIR filter. The first coefficients of the FIR filter should not be zero. Also, the first and the last coefficients of the FIR filter must not be the same. The lattice coefficients are used for filtering purpose using a lattice filter.

Examples

//A discrete Signal 
X=[ 3, 7, 1 , 8, 12, 5, -3,  -1, 4, 7, 3, 1];
//Fir filter coefficients
B=[1, 2, 8, 5, 2];
B=B/sum(B);
// Lattice filter coefficients
K=dir2latc(B);
// Filtering X with K
Y=latcfilt(K,X)
//Direct FIR filtering using B
Yd=filter(B,1,X)

See Also

Authors


Report an issue
<< dir2ladr Signal Processing Supplementary toolbox icceps >>