# idwpt

## Syntax

## Description

inverts the discrete wavelet packet transform (DWPT) of the terminal node wavelet packet
tree `xrec`

= idwpt(`wpt`

,`l`

)`wpt`

using the bookkeeping vector `l`

. The
`idwpt`

function assumes that you obtained `wpt`

and
`l`

using `dwpt`

with the
`fk18`

wavelet and default settings.

If the input to `dwpt`

was one
signal, `xrec`

is a column vector. If the input was a multichannel
signal, `xrec`

is a matrix, where each matrix column corresponds to a
channel.

specifies the mode to extend the signal. `xrec`

= idwpt(___, 'Boundary',`ExtensionMode`

)`ExtensionMode`

can be either
`'reflection'`

(default) and `'periodic'`

. By setting
`ExtensionMode`

to `'periodic'`

or
`'reflection'`

, the wavelet packet coefficients at each level are
extended based on the modes `'per'`

or `'sym'`

in
`dwtmode`

, respectively.
`ExtensionMode`

must be the same mode used in the DWPT.

## Examples

## Input Arguments

## References

[1] Wickerhauser, Mladen Victor.
*Adapted Wavelet Analysis from Theory to Software.* Wellesley, MA: A.K.
Peters, 1994.

[2] Percival, D. B., and A. T. Walden.
*Wavelet Methods for Time Series Analysis*. Cambridge, UK: Cambridge
University Press, 2000.

[3] Mesa, Hector. “Adapted Wavelets
for Pattern Detection.” In *Progress in Pattern Recognition, Image Analysis and
Applications*, edited by Alberto Sanfeliu and Manuel Lazo Cortés, 3773:933–44.
Berlin, Heidelberg: Springer Berlin Heidelberg, 2005. https://doi.org/10.1007/11578079_96.

## Extended Capabilities

## Version History

**Introduced in R2020a**