Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: generating matrix in O-D format
Date: Wed, 28 Nov 2012 11:12:08 -0600
Organization: Aioe.org NNTP Server
Lines: 27
Message-ID: <k95gla$5ll$1@speranza.aioe.org>
References: <k94hgj$cjo$1@newscl01ah.mathworks.com> <k94j87$nte$1@speranza.aioe.org> <k95c59$fok$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: 8BDKN2jAF7Gbh1bdEqPyEQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:783728

On 11/28/2012 9:55 AM, dibyendu wrote:
> out put will be like that
>       1  3    5   7
> 1   0  1    3   0
> 3   0  4    3   0
> 5  6   5    0   0
> 7  0   0    0   0
>

> 1st interval is 0 to 2, so denoted by 1, 2nd interval is 2 to 4 so denoted by 3 and like that..

>>> A=[1 2 3
>>> 3 2 5
>>> 5 3 6
>>> 5 4 4
>>> 7 5 3
>>> 6 6 2]
>>> now if for each interval of 2 in column 2 and column 3 i want to average column 1. in atlab
>>>

Sorry, I do not understand at all. Hopefully someone else will and
help you.

good luck

--Nasser