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

Home » Public Forums » archive » Removing equal elements from an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Removing equal elements from an array [message #49761] Tue, 15 August 2006 07:46 Go to previous message
Julio[1] is currently offline  Julio[1]
Messages: 52
Registered: May 2005
Member
Another question... please help me!!

I have an array 'A' with two columns, latitudes and longitudes, and
several lines. A need to make another array with the elements of A that
don't repeat. An example:

A[0]=[20.4, 40.3, 50.2, 50.2]
A[1]=[30.2, 60.2, 32.4, 32.4]

Note that the third and fourth pairs are the same (50.2, 32.4). So, I
need to make another array and remove one of the pairs. So, I would
have:

A[0]=[20.4, 40.3, 50.2]
A[1]=[30.2, 60.2, 32.4]

Do you have any idea how to do that??

Thanks!

Julio
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: quickly reassign numbers in large array?
Next Topic: Re: Changing the Dec labeling from horizontal to vertical

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

Current Time: Fri Oct 10 02:30:15 PDT 2025

Total time taken to generate the page: 0.23831 seconds