Unique numbers in array
古いコメントを表示
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?
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2014 年 4 月 23 日
編集済み: Azzi Abdelmalek
2014 年 4 月 23 日
out= unique(A)
Or
out=unique(A,'rows')
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!