Wavelet Toolbox
  Go to function:
    Search    Help Desk 
wkeep    Examples

Keep part of a vector or a matrix.

Syntax

Description

wkeep is a general utility.

For a vector, Y = wkeep(X,L,O) extracts the vector Y from the vector X. L is the length of result Y. If O = 'c' ('l' , 'r' respectively), Y is the central (left, right respectively) part of X.

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. S is the size of Y.

Examples



[ Previous | Help Desk | Next ]