Find the unique elements of an unsorted array - IDL

; Create an array:
array = [1, 2, 1, 2, 3, 4, 5, 6, 6, 5]
; Variable B holds an array containing the sorted, 
; unique values in array:
b = array[UNIQ(array, SORT(array))]
PRINT, b

猜你喜欢

转载自blog.csdn.net/colddie/article/details/80659941
今日推荐