MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > average 2nd column when 1st column has same number 

Subject: average 2nd column when 1st column has same number From: andy Date: 9 Mar, 2011 19:07:03 Message: 1 of 17 
ok thanks, i have another question about matlab methods. 
Subject: average 2nd column when 1st column has same number From: Sean de Date: 9 Mar, 2011 19:21:04 Message: 2 of 17 
"andy " <andy.kata7878@gmail.com> wrote in message <il8j4n$nhg$1@fred.mathworks.com>... 
Subject: average 2nd column when 1st column has same number From: Nasser M. Abbasi Date: 9 Mar, 2011 19:44:07 Message: 3 of 17 
On 3/9/2011 11:07 AM, andy wrote: 
Subject: average 2nd column when 1st column has same number From: jonathan Date: 9 Mar, 2011 20:16:05 Message: 4 of 17 
"Nasser M. Abbasi" <nma@12000.org> wrote in message <il8laa$cgv$2@speranza.aioe.org>... 
Subject: average 2nd column when 1st column has same number From: Nasser M. Abbasi Date: 9 Mar, 2011 20:38:46 Message: 5 of 17 
On 3/9/2011 12:16 PM, jonathan wrote: 
Subject: average 2nd column when 1st column has same number From: dpb Date: 9 Mar, 2011 20:57:17 Message: 6 of 17 
On 3/9/2011 2:38 PM, Nasser M. Abbasi wrote: 
Subject: average 2nd column when 1st column has same number From: jonathan Date: 9 Mar, 2011 21:40:21 Message: 7 of 17 
dpb <none@non.net> wrote in message <il8pji$drk$1@news.eternalseptember.org>... 
Subject: average 2nd column when 1st column has same number From: Nasser M. Abbasi Date: 9 Mar, 2011 21:54:59 Message: 8 of 17 
On 3/9/2011 1:40 PM, jonathan wrote: 
Subject: average 2nd column when 1st column has same number From: Bruno Luong Date: 9 Mar, 2011 22:10:21 Message: 9 of 17 
"Sean de " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <il8jv0$i08$1@fred.mathworks.com>... 
Subject: average 2nd column when 1st column has same number From: jonathan Date: 10 Mar, 2011 02:14:05 Message: 10 of 17 
"Nasser M. Abbasi" <nma@12000.org> wrote in message <il8svm$1h2$1@speranza.aioe.org>... 
Subject: average 2nd column when 1st column has same number From: Nasser M. Abbasi Date: 10 Mar, 2011 04:14:20 Message: 11 of 17 
On 3/9/2011 6:14 PM, jonathan wrote: 
Subject: average 2nd column when 1st column has same number From: Bruno Luong Date: 10 Mar, 2011 07:32:04 Message: 12 of 17 
Average multiple column: 
Subject: average 2nd column when 1st column has same number From: jonathan Date: 10 Mar, 2011 13:13:05 Message: 13 of 17 
"Nasser M. Abbasi" <nma@12000.org> wrote in message <il9j71$g7i$1@speranza.aioe.org>... 
Subject: average 2nd column when 1st column has same number From: Bruno Luong Date: 10 Mar, 2011 13:30:08 Message: 14 of 17 
"jonathan " <senator314159@hotmail.com> wrote in message <il9c5c$q7u$1@fred.mathworks.com>... 
Subject: average 2nd column when 1st column has same number From: Bruno Luong Date: 10 Mar, 2011 14:15:08 Message: 15 of 17 
If you don't like ACCUMARRAY function (I adore it), here is another method using CUMSUM. This method will be more prone to numerical errors (difference of large numbers): 
Subject: average 2nd column when 1st column has same number From: jonathan Date: 10 Mar, 2011 14:18:05 Message: 16 of 17 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <ilajp0$g7m$1@fred.mathworks.com>... 
Subject: average 2nd column when 1st column has same number From: Bruno Luong Date: 10 Mar, 2011 14:27:05 Message: 17 of 17 
"jonathan " <senator314159@hotmail.com> wrote in message 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.