![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
How to remove repeated numbers from a wave
![](/sites/default/files/styles/thumbnail/public/default_images/Artboard%201_1.png?itok=jeHOCIXy)
Amo
Hello forum,
I have a wave "all_pts", it contains float numbers. I want to remove repeated values. Example is shown in image. I want to have a wave similar to "all_pts_noRepeated" , as you see in this wave, values 10.2569 and 9.5245 are removed because they are repeated.
what is the easiest way to do so?
Thank you,
![expecting wave](/sites/default/files/styles/content_body/public/2020-05/wave.png?itok=YSN9F-JT)
Try out FindDuplicates present since IP7.
May 17, 2020 at 03:31 am - Permalink
Histogram might also be an option
May 17, 2020 at 04:13 am - Permalink
In reply to Try out FindDuplicates… by thomas_braun
Thanks for the comment,
I forgot to mention that my igor version is 6.1.
May 17, 2020 at 02:19 pm - Permalink
You could also Sort the wave and Extract the points that differ from the previous points
May 18, 2020 at 12:44 am - Permalink
In reply to You could also Sort the wave… by olelytken
As I recall, when dealing with floating point values you should incorporate a tolerance in your matching. That is, consider values to be the same if within "+/- alpha" of the value.
May 18, 2020 at 06:02 am - Permalink
I might add that Igor 6.1 qualifies as ancient software :)
May 18, 2020 at 09:53 am - Permalink