Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: obatining mean value for every fixed numbers of elements
Date: Sun, 14 Dec 2008 09:50:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <gi2ksb$qsa$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1229248203 27530 172.30.248.37 (14 Dec 2008 09:50:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 14 Dec 2008 09:50:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1636294
Xref: news.mathworks.com comp.soft-sys.matlab:506842

Hello, 
I have a 6X4 data set and need to average them across every 3X2 data point. The example is as follows:
1, 2,3,4;     
3, 4, 5,6;
7, 8, 9,10;
11, 12, 13, 14;
15, 16,17,18; 
19,20,21 22; 
I would like to obtain four means from1,3,7,2,4,8;3,5,9,4,6,10;11,15,19,12,16,20;13,17,21,14,18,22. Are there some useful matlab function to do this? Any suggestion will appreciated.

Sincerely,
Yihui