Wavelet Toolbox Previous page   Next Page
wextend

Extend vector or matrix

Syntax

Y = wextend(TYPE,MODE,X,L)

Description

The valid extension types (TYPE) are listed in the table below.

TYPE
Description
1, '1', '1d' or '1D'
1-D extension
2, '2', '2d' or '2D'
2-D extension
'ar' or 'addrow'
Add rows
'ac' or 'addcol'
Add columns

The valid extension modes (MODE) are listed in the table below.

MODE
Description
'zpd'
Zero extension
'sp0'
Smooth extension of order 0
'spd' (or'sp1')
Smooth extension of order 1
'sym' or 'symh'
Symmetric-padding (half-point): boundary value symmetric replication
'symw'
Symmetric-padding (whole-point): boundary value symmetric replication
'asym' or 'asymh'
Antisymmetric-padding (half-point): boundary value antisymmetric replication
'asymw'
Antisymmetric-padding (whole-point): boundary value antisymmetric replication
'ppd'
Periodized extension (1)
'per'
Periodized extension (2):
If the signal length is odd, wextend adds an extra-sample, equal to the last value, on the right and performs extension using the 'ppd' mode. Otherwise, 'per' reduces to 'ppd'. The same kind of rule stands for images.

With TYPE = {1, '1', '1d' or '1D'}:

For more information on symmetric extension modes see "References".

Examples

References

Strang, G.; T. Nguyen (1996), Wavelets and filter banks, Wellesley- Cambridge Press.


Previous page  wentropy wfbm Next page

© 1994-2005 The MathWorks, Inc.