Wavelet Toolbox™ Previous page   Next Page 
cwtext
 Provide feedback about this page

Real or complex continuous 1-D wavelet coefficients using extension parameters

Syntax

Description

COEFS = cwtext(S,SCALES,'wname') computes the continuous wavelet coefficients of the vector S at real, positive SCALES, using a wavelet named 'wname'. The signal S is real; the wavelet can be real or complex.

COEFS = cwtext(S,SCALES,'wname',PropName1,ProVal1, ...) computes and plots the continuous wavelet transform coefficients using extra parameters. Valid values for PropName are:

The continuous wavelet transform coefficients are computed using the extension parameters:

Valid values for ExtMode are:

etc.

Valid values for ExtSide are:

For the complete list of valid values for ExtMode and ExtSide, see wextend.

ExtLen is the length of extension.

Default values for extension parameters are 'zpd' and 'b'. ExtLen is computed using the maximum of SCALES.

Instead of three parameters, use the following syntaxes:

COEFS = cwtext(...,'PlotMode',PLOTMODE) computes and plots the continuous wavelet transform coefficients. Coefficients are colored using PLOTMODE:

You get 3-D plots (surfaces) using the same keywords listed above for the PLOTMODE parameter, preceded by '3D', for example, PLOTMODE = '3Dlvl'.

When PLOTMODE = 'scal' or 'scalCNT' the continuous wavelet transform coefficients and the corresponding scalogram (percentage of energy for each coefficient) are computed.

When PLOTMODE is 'scal', a scaled image of scalogram is displayed. When PLOTMODE is 'scalCNT', a contour representation of scalogram is displayed.

If the XLIM parameter is given, the continuous wavelet transform coefficients are colored using PLOTMODE and XLIM.

XLIM = [x1 x2] with 1 <= x1 < x2 <= length(S).

For each given scale a within the vector SCALES, the wavelet coefficients C(a,b) are computed for b = 1 to ls = length(S), and are stored in COEFS(i,:) if a = SCALES(i).

Output argument COEFS is a la-by-ls matrix where la is the length of SCALES. COEFS is a real or complex matrix depending on the wavelet type.

Examples of valid use are as follows:

Examples

This example demonstrates the difference between a continuous wavelet transform which deals with signal extension and one which does not.

In this figure above, which is produced by the cwt function, the values of coefficients are tremendously affected by the boundary effect due to the discontinuity of the signal on the right. The default (zero-padding) extension mode on the right explains this important discontinuity because the last value is 1. On the left there is no effect because the first value is 0.

In this figure, produced by the cwtext function, the suitable extension mode of the signal is very efficient, giving as it can be seen, a good result.

See Also
cwt, wavedec, wavefun, waveinfo, wcodemat


 Provide feedback about this page 

Previous page cwt dbaux Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS