Testy Posted February 19, 2013 Report Share Posted February 19, 2013 An example of what I'm doing: Given: [1,2,3; 2,2,2; 2,4,4; 3,1,1; 3,3,3] Output: [1,2,3; 2,3,3; 3,2,2] So that the output array has unique values in the first column, the values in the other columns being the average of the rows with the same value in the first column. The code I have right now is this: Is there a simpler way to do this? Quote Link to comment
hooovahh Posted February 20, 2013 Report Share Posted February 20, 2013 Sorry you made a duplicate topic here and I replied in any case here is what I posted: I've attached my go at it. This uses two OpenG VIs Remove Duplicates and Search Array. Install the OpenG Array package to get these VIs. Average Rows Same First Column Hooovahh.vi 9.06K 29 Number of downloads Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.