latcfilt
R2026bLattice and lattice-ladder filter implementation
Syntax
Description
Examples
Input Arguments
Output Arguments
More About
Algorithms
Assume a filter with reflection coefficients k = [k1
k2 ⋯
kn] and v = [v1
v2 ⋯
vn+1]. Depending on the filter impulse response, the
latcfilt function uses the lattice or lattice-ladder structure to
implement the filter. To learn more about these structures, see Lattice and Lattice-Ladder Filters.
The filter has n initial states, which are located at the inputs of each z-1 delay block in the filter implementation diagram.
When you specify
zias a scalar,latcfiltinitializes the filter states by setting ζ1 = ζ2 = ⋯ =ζn =zi.When you specify
zias a vector,latcfiltinitializes the filter states by setting ζr =zi(r)for r = 1, 2, …, n.When you specify
zias a matrix, then the state initialization repeats for each column ofx.
For each sample of x across the first array dimension whose size is
greater than 1 or across the dimension dim, the
latcfilt function computes f and
g from the lattice or lattice-ladder structure, updates the filter
states, and repeats this operation until it finishes filtering the last sample of
x.
The filter has n final states, which are located at the outputs of each z-1 delay block in the filter implementation diagram.
When you specify to return
zf,latcfiltgathers the states computed during the filtering of the last sample ofx, and stores these final states inzfaszf(r)= ζr, for r = 1, 2, …, n.The filtering operation repeats for each column of
xandlatcfiltreturns the final states in a new column ofzf.
