Wavelet Toolbox    
wkeep

Keep part of a vector or a matrix

Syntax

Description

wkeep is a general utility.

For a vector, Y = wkeep(X,L,OPT) extracts the vector Y from the vector X. The length of Y is L.

If OPT = 'c' ('l', 'r', respectively), Y is the central (left, right, respectively) part of X.

Y = wkeep(X,L,FIRST) returns the vector X(FIRST:FIRST+L-1).

Y = wkeep(X,L) is equivalent to Y = wkeep(X,L,'c').

For a matrix, Y = wkeep(X,S) extracts the central part of the matrix X. The size of Y is S.

Y = wkeep(X,S,[FIRSTR FIRSTC]) extracts the submatrix of matrix X, of size S and starting from X(FIRSTR,FIRSTC).

Examples


  wfilters wmaxlev