How to remove repeat entities in a matlab array

2 ビュー (過去 30 日間)
Et.B200
Et.B200 2020 年 11 月 10 日
コメント済み: Steven Lord 2020 年 11 月 11 日
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
James Tursa 2020 年 11 月 10 日
編集済み: James Tursa 2020 年 11 月 10 日
unique(your_variable)
or
unique(your_variable,'stable')
  9 件のコメント
James Tursa
James Tursa 2020 年 11 月 11 日
@Stephen: Good catch! I totally missed that.
Steven Lord
Steven Lord 2020 年 11 月 11 日
@Stephen: I missed that as well.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by