Name

packr — deletes rows of a matrix containing missing values

CALLING SEQUENCE

mat=packr(mat)

PARAMETERS

Input

• mat = a (nxp) matrix

Output

• mat = a (mxp) matrix

DESCRIPTION

Function that mimics gauss function packr: deletes the rows of a matrix that contain any missing values

EXAMPLE


v=[ones(7,1) [1:7]'] ;v(3,2)=%nan;w= packr(v)

 

Example gives the matrix: 

w  =

!   1.    1. !

!   1.    2. !

!   1.    4. !

!   1.    5. !

!   1.    6. !

!   1.    7. !  



               

AUTHOR

Eric Dubois 2004