Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67244

Find the number of duplicates in array

$
0
0

Hello,

 

In the attached VI, I am attempting to find the number of duplicates in a string array, then return a new array with the number and the corresponding number of times that string appears.  In the VI, for the given array:

100, 100, 100, 200, 200, 400, 400, 400, 400, 400, I would like to generate the array:

100 3

200 2

400 5

Thanks for your help!


Viewing all articles
Browse latest Browse all 67244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>