Path: news.mathworks.com!not-for-mail
From: "Michael " <michael.lisowski@gentex.com.extrachar>
Newsgroups: comp.soft-sys.matlab
Subject: mean of a single column?
Date: Fri, 12 Sep 2008 13:22:01 +0000 (UTC)
Organization: Gentex Corp
Lines: 11
Message-ID: <gadqdp$ekv$1@fred.mathworks.com>
Reply-To: "Michael " <michael.lisowski@gentex.com.extrachar>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1221225721 15007 172.30.248.37 (12 Sep 2008 13:22:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 12 Sep 2008 13:22:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1492304
Xref: news.mathworks.com comp.soft-sys.matlab:489979



I know I can find the mean of the all the rows and colums of a matrix with

X =

     1     2     3
     3     4     6

mean (X,1) % column
mean (X,2) % row

What is the command to find the mean of a single column within a matrix?