How to remove repeat entities in a matlab array
2 ビュー (過去 30 日間)
古いコメントを表示
I have an array with 17 values within it, I have only one number than appears twice, i want the new identity to have 16 values in it, only including this perticular repeat value only once in the new identity
回答 (1 件)
James Tursa
2020 年 11 月 10 日
編集済み: James Tursa
2020 年 11 月 10 日
unique(your_variable)
or
unique(your_variable,'stable')
9 件のコメント
参考
カテゴリ
Help Center および File Exchange で Particle & Nuclear Physics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!