comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » I would like to average the first n columns based on duplicate values of the n+1th column
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
I would like to average the first n columns based on duplicate values of the n+1th column [message #93699] Mon, 03 October 2016 14:05 Go to previous message
belkaraza is currently offline  belkaraza
Messages: 6
Registered: June 2016
Junior Member
Hey,
Can Someone help me solve this problem in IDL:
"I have a matrix with duplicate numbers in one of the columns. I would like to average the rows with duplicate numbers. For example, I have duplicate values in a matrix A in column 3:

A =
1 2 1
4 4 2
5 4 2
4 5 2
5 5 3
10 3 3


B =
1 2 1
4.3333 4.3333 2.0000
7.5000 4.0000 3.0000

where each row is the average values of the duplicate rows of column 3.

Can anyone help?"

found here:
http://stackoverflow.com/questions/15270019/i-would-like-to- average-the-first-n-columns-based-on-duplicate-values-of-the -n1

Cheers,
B.R.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing a matrix
Next Topic: display GeoTIFF image automatically using cgGeoMap

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:58:23 PDT 2025

Total time taken to generate the page: 0.00397 seconds