Name

meanc — mimics gauss function meanc

CALLING SEQUENCE

v=meanc(mat)

PARAMETERS

Input

• mat = a (nxp) matrix

Output

• v = a (px1) vector

DESCRIPTION

Function that mimics gauss function meanc: takes the mean of each column of a matrix and stores it in a column. Is equivalent to v=mean(mat,'r')'

EXAMPLE


x1=ones(7,1);x2=[1:7]';v = meanc([x1 x2])
//returns
// v  =
//!   1. !
//!   4. !

               

AUTHOR

Eric Dubois 2004