How to eliminate same strings in a cell-array?

2 vues (au cours des 30 derniers jours)
andrea
andrea le 23 Oct 2014
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!

Réponse acceptée

Star Strider
Star Strider le 23 Oct 2014
This works:
v = unique(h);

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by