Contenido principal

symaux

(To be removed) Symlet wavelet filter computation

symaux will be removed in a future release. Use daubfactors instead. (since R2026a) For more information, see Version History.

Description

The symaux function generates the scaling filter coefficients for the "least asymmetric" Daubechies wavelets.

w = symaux(n) is the order n Symlet scaling filter such that sum(w) = 1.

Note

  • Instability may occur when n is too large. Starting with values of n in the 30s range, function output will no longer accurately represent scaling filter coefficients.

  • As n increases, the time required to compute the filter coefficients rapidly grows.

  • For n = 1, 2, and 3, the order n Symlet filters and order n Daubechies filters are identical. See Extremal Phase Wavelet.

w = symaux(___,sumw) is the order n Symlet scaling filter such that sum(w) = sumw.

w = symaux(n,0) is equivalent to w = symaux(n,1).

example

Examples

collapse all

In this example you will generate symlet scaling filter coefficients whose norm is equal to 1. You will also confirm the coefficients satisfy a necessary relation.

Compute the scaling filter coefficients of the order 10 symlet whose sum equals2.

n = 10;
w = symaux(n,sqrt(2));

Confirm the sum of the coefficients is equal to 2 and the norm is equal to 1.

sqrt(2)-sum(w)
ans = 
2.2204e-16
1-sum(w.^2)
ans = 
-3.3307e-14

Since integer translations of the scaling function form an orthogonal basis, the coefficients satisfy the relation nw(n)w(n-2k)=δ(k). Confirm this by taking the autocorrelation of the coefficients and plotting the result.

corrw = xcorr(w,w);
stem(corrw)
grid on
title('Autocorrelation of scaling coefficients')

Figure contains an axes object. The axes object with title Autocorrelation of scaling coefficients contains an object of type stem.

stem(corrw(2:2:end))
grid on
title('Even-indexed autocorrelation values')

Figure contains an axes object. The axes object with title Even-indexed autocorrelation values contains an object of type stem.

This example shows that symlet and Daubechies scaling filters of the same order are both solutions of the same polynomial equation.

Generate the order 4 Daubechies scaling filter and plot it.

wdb4 = dbaux(4);
stem(wdb4)
title('Order 4 Daubechies Scaling Filter')

Figure contains an axes object. The axes object with title Order 4 Daubechies Scaling Filter contains an object of type stem.

wdb4 is a solution of the equation: P = conv(wrev(w),w)*2, where P is the "Lagrange trous" filter for N = 4. Evaluate P and plot it. P is a symmetric filter and wdb4 is a minimum phase solution of the previous equation based on the roots of P.

P = conv(wrev(wdb4),wdb4)*2;
stem(P)
title('''Lagrange trous'' filter')

Figure contains an axes object. The axes object with title 'Lagrange trous' filter contains an object of type stem.

Generate wsym4, the order 4 symlet scaling filter and plot it. The Symlets are the "least asymmetric" Daubechies' wavelets obtained from another choice between the roots of P.

wsym4 = symaux(4);
stem(wsym4)
title('Order 4 Symlet Scaling Filter')

Figure contains an axes object. The axes object with title Order 4 Symlet Scaling Filter contains an object of type stem.

Compute conv(wrev(wsym4),wsym4)*2 and confirm that wsym4 is another solution of the equation P = conv(wrev(w),w)*2.

P_sym = conv(wrev(wsym4),wsym4)*2;
err = norm(P_sym-P)
err = 
1.2491e-15

Input Arguments

collapse all

Order of the symlet, specified as a positive integer.

Sum of the scaling filter coefficients, specified as a positive real number. Set to sqrt(2) to generate vector of coefficients whose norm is 1.

Output Arguments

collapse all

Vector of scaling filter coefficients of the order n symlet.

The scaling filter coefficients satisfy a number of properties. You can use these properties to check your results. See Unit Norm Scaling Filter Coefficients for additional information.

More About

collapse all

References

[1] Daubechies, I. Ten Lectures on Wavelets, CBMS-NSF Regional Conference Series in Applied Mathematics. Philadelphia, PA: SIAM Ed, 1992.

[2] Oppenheim, Alan V., and Ronald W. Schafer. Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice Hall, 1989.

Version History

Introduced before R2006a

collapse all

See Also

| |