trend Basic functions undrift

Grocer >> Basic functions > trimr

trimr

strip a matrix

CALLING SEQUENCE

[z]=trimr(x,n1,n2)

PARAMETERS

Input

• x = input matrix (or vector) (n x k)

• n1 = first n1 rows to strip

• n2 = last n2 rows to strip

Output

• z = x(n1+1:n-n2,:)

DESCRIPTION

Returns a matrix (or vector) x stripped of the specified rows. Modelled after Gauss trimr function.

EXAMPLE

trimr([1:10]',2,3)
// returns:
//!   3. !
//!   4. !
//!   5. !
//!   6. !
//!   7. !

AUTHOR

Eric Dubois 2002
trend Basic functions undrift