Path: news.mathworks.com!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Christian Zietz <newsgroup@chzsoft.com.ar>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mean of a single column?
Date: Fri, 12 Sep 2008 15:38:48 +0200
Lines: 13
Message-ID: <6iv9ncFnh3oU1@mid.individual.net>
References: <gadqdp$ekv$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net fpXXt5S42FP6IGK3b0ORWAjN7hwfiaHDbyq5Gt9Opgh3zBvg==
Cancel-Lock: sha1:20fFg8tJfF8cG1KVSHXp8fEZebA=
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.8.1.15) Gecko/20080621 SeaMonkey/1.1.10 Mnenhy/0.7.5.0
In-Reply-To: <gadqdp$ekv$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:489983



Michael schrieb:

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

Are you looking for

mean(X(:,1))

Christian
-- 
Christian Zietz  -  CHZ-Soft  -  czietz (at) gmx.net
WWW: http://www.chzsoft.com.ar/
PGP/GnuPG-Key-ID: 0x6DA025CA