<< matmul Basic functions miss >>

Grocer >> Basic functions > meanc

meanc

mimics gauss function meanc

CALLING SEQUENCE

v=meanc(mat)

PARAMETERS

Input

* mat = a (n x p) matrix

 

Output

* v = a (p x 1) 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

Report an issue
<< matmul Basic functions miss >>