How can I remove duplicate values from cell array?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mira le
am 11 Nov. 2019
Bearbeitet: Nicolas B.
am 11 Nov. 2019
I have this problem
S={ 1 2, 2 3 }
how delete duplicate value:
S becomes {1 2 3 }
0 Kommentare
Akzeptierte Antwort
Nicolas B.
am 11 Nov. 2019
Bearbeitet: Nicolas B.
am 11 Nov. 2019
So in your case, because you have a cell array:
S = {1 2 2 3};
S = num2cell(unique(cell2mat(S)));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!