Unique numbers in array
Mostra commenti meno recenti
I was charged to try and write my own unique function , I was thinking of first sorting the array, and then writing a loop that went through each number from min(min) to max(max) but cant figure out once a repeated number is identified to skip it. Any thoughts?
Risposta accettata
Più risposte (1)
Azzi Abdelmalek
il 23 Apr 2014
Modificato: Azzi Abdelmalek
il 23 Apr 2014
out= unique(A)
Or
out=unique(A,'rows')
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!