Wavelet Toolbox    
wextend

Extend a vector or a 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'
Symmetric extension
'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'}:

Examples


  wentropy wfilters