How can I remove duplicate values from cell array?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mira le
el 11 de Nov. de 2019
Editada: Nicolas B.
el 11 de Nov. de 2019
I have this problem
S={ 1 2, 2 3 }
how delete duplicate value:
S becomes {1 2 3 }
0 comentarios
Respuesta aceptada
Nicolas B.
el 11 de Nov. de 2019
Editada: Nicolas B.
el 11 de Nov. de 2019
So in your case, because you have a cell array:
S = {1 2 2 3};
S = num2cell(unique(cell2mat(S)));
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!