How to eliminate same strings in a cell-array?

2 ビュー (過去 30 日間)
andrea
andrea 2014 年 10 月 23 日
回答済み: Star Strider 2014 年 10 月 23 日
Thi is my cell-array:
h={'a','b','c','a','d'};
How to eliminate one of two equal strings like 'a' in the example and get a result like this:
v={'a','b','c','d'};
Thanks in advance for your help!

採用された回答

Star Strider
Star Strider 2014 年 10 月 23 日
This works:
v = unique(h);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by