Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to find the idx of different relative Min values
Replies: 5   Last Post: Oct 7, 2012 9:33 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tanya

Posts: 4
Registered: 10/7/12
How to find the idx of different relative Min values
Posted: Oct 7, 2012 11:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a matrix which looks like the following:

367 rows x 3 columns

Column 1 = Point ID (the ID of a point (the ID is a number between 18 and 7253)
Column 2 = Group (The Group the point ID is associated with (Groups = number between 25 - 841)
Column 3 = Distance ( The distance in pixels that the Point ID lies away from a specific vector (Distances = a number between 6 - 511)

I want to do the following: If the Group number occurs more than once, find the ID of the Point such that the distance is minimum.

I.e. if there are 3 points A B and C which all belong to Group 3 I am only interest in the Point with the smallest distance.





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.