Grocer Function

NAME

meanc - mimics gauss function meanc

CALLING SEQUENCE

v=meanc(mat)

PARAMETERS

Input

Output

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])

Example gives the vector:
 v  =
!   1. !
!   4. !

AUTHOR

Eric Dubois 2004