Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indices in an array

Status
Not open for further replies.

ignacio_b

Technical User
Jul 29, 2019
10
GB
Hello,

I have a huge list of values in an array M(1432188,3). I need to compare two numbers (in the same column), when these two numbers are equal I need to know their indices.

Does anyone know how to do that?
Is there a built-in function capable of doing that?

If someone can help me, it would help me a lot.

Thanks!!
 
If the array is not sorted, I would first try to sort it
and then in a loop for every index k compare if array(k) is equal to array(k+1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top