Main Content

tf2latc

R2026b

Convert transfer function filter coefficients to lattice filter form

Description

[k,v] = tf2latc(b,a) returns the lattice coefficients k and the ladder coefficients v for an IIR lattice-ladder filter, normalized by a(1). The function errors if one or more of the lattice coefficients are exactly equal to 1.

[k,v] = tf2latc(b0,a) returns the ladder coefficients where only the first element in v is nonzero. b0 is a scalar.

k = tf2latc(1,a) returns the lattice coefficients k for an IIR all-pole (autoregression) lattice filter.

example

k = tf2latc(b) returns the lattice coefficients k for an FIR (moving average) lattice filter, normalized by b(1).

k = tf2latc(b,phase) specifies the type of FIR (moving average) lattice filter as minimum-phase or maximum-phase.

Examples

collapse all

Convert an all-pole IIR filter to lattice coefficients.

a = [1 13/24 5/8 1/3];
k = tf2latc(1,a)
k = 3×1

    0.2500
    0.5000
    0.3333

Input Arguments

collapse all

Transfer function coefficients, specified as vectors.

The transfer function is expressed in terms of b = [b0 b1 ⋯ bn] and a = [a0 a1 ⋯ an] as one of these:

  • H(z) = b0 + b1z–1 + ⋯ + bnz–n for FIR filters

  • H(z)=b0+b1z−1+⋯+bnz−na0+a1z−1+⋯+anz−n for IIR filters

Data Types: single | double

Transfer function numerator coefficient, specified as a scalar.

The transfer function is expressed in terms of b0 and a = [a0 a1 ⋯ an] is

H(z)=b0a1+a2z−1+⋯+an+1z−n.

Data Types: single | double

Type of FIR (moving average) filter, specified as one of these:

  • "max" — Implement a maximum-phase filter from the associated transfer function coefficients b.

  • "min" — Implement a minimum-phase filter from the associated transfer function coefficients b.

Data Types: char | string

Output Arguments

collapse all

Lattice and ladder coefficients, returned as column vectors.

Depending on the filter implementation, tf2latc uses the poly2rc and rlevinson functions to convert the transfer function coefficients into lattice or lattice-ladder coefficients. The result comprises these vectors:

  • k = [k1; k2; ⋯; kn], which contains lattice coefficients

  • v = [v1; v2; ⋯; vn+1], which contains ladder coefficients

References

[1] Mitra, Sanjit K. Digital Signal Processing: A Computer-Based Approach. 2nd ed. New York: McGraw-Hill Higher Education, 2001.

[2] Hayes, Monson H. Statistical Digital Signal Processing and Modeling. New York: John Wiley & Sons, 1996.

Extended Capabilities

expand all

Version History

Introduced before R2006a

expand all