Wavelet Toolbox
  Go to function:
    Search    Help Desk 
cwt    Examples   See Also

Continuous 1-D wavelet coefficients.

Syntax

Description

cwt is a one-dimensional wavelet analysis function.

coefs = cwt(s,scales,'wname') computes the continuous wavelet coefficients of the vector s at real, positive scales, using the wavelet whose name is 'wname' (see waveinfo).

coefs = cwt(s,scales,'wname','plot') computes, and in addition plots, the continuous wavelet transform coefficients.

Let s be the signal and the wavelet. Then the wavelet coefficient of s at scale a and position b is defined by:


since s(t) is a discrete signal, we use a piecewise constant interpolation of the s(k) values, k = 1 to length(s).

Then for any strictly positive scale a, we compute Ca,b for b = 1 to length(s).

Output argument coefs contains the wavelet coefficients for the scales within the vector scales in the same order, stored rowwise.

Examples of valid uses are:

Examples

This example demonstrates the difference between discrete and continuous wavelet transforms.

Algorithm

since s(t) = s(k), if
then

so at any scale a, the wavelet coefficients Ca,b for b = 1 to length(s) can be obtained by convolving the signal s and a dilated and translated version of the

integrals of the form


(given by intwave), and taking finite difference

using diff.

See Also

wavedec, wavefun, waveinfo, wcodemat

[ Previous | Help Desk | Next ]