functiondwt
One-dimensional discrete wavelet transform (one-level decomposition)
Information
This function calculates discrete wavelet transform (one-level wavelet decomposition) of the input signal, u. Before transformation, the original signal is extended at both ends with zero padding. The length of the two result vectors is floor((size(u,1)+size(lod,1)-1)/2).
Refer to the section of wavelet Families for the detailed information about the available wavelets.
The default input values provide a quick example with a simple saw-tooth signal.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | u | {1, 2, 1, 2, 1, 2, 3, 4, 1} | Signal to be analyzed |
| Real[:] | lod | {0.707, 0.707} | Low pass filter for decomposition |
| Real[size(lod, 1)] | hid | {-0.707, 0.707} | High pass filter for decomposition |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | ca | Approximation coefficients, size(ca,1) = ceil(size(u,1)/2) | |
| Real[size(ca, 1)] | cd | Detail coefficients |