Similar to unique, how can i use for case insenisitive

17 ビュー (過去 30 日間)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015 年 6 月 25 日
For example I have cell array a = { 'abc' , 'aBc' , 'xyz' , 'Xyz'}
now i need to remove the duplication.
As unique is the case sensitive, it returns the whole array.
how can i do it?
Thank you

採用された回答

Jan
Jan 2015 年 6 月 25 日
編集済み: Jan 2015 年 6 月 25 日
a = { 'abc' , 'aBc' , 'xyz' , 'Xyz'};
[dummy, ia] = unique(lower(a));
result = a(ia);
  3 件のコメント
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015 年 6 月 25 日
will that be possible
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015 年 6 月 25 日
its working thank u

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by