Delete double cell array entries
Mostrar comentarios más antiguos
How can I delete double entries in a cell array? I don't want to use a loop. For example I have:
CellArray={[1 2 3] [1 2] [3 5 6 7] [1 2] [2 4] }
And as a result I want to get this:
NewCellArray={[1 2 3] [1 2] [3 5 6 7] [2 4] }
Thank you very much and have a nice day!
Respuesta aceptada
Más respuestas (2)
Babak
el 20 de Mzo. de 2013
CellArray={[1 2 3] [1 2] [3 5 6 7] [1 2] [2 4] };
NewCellArray = [CellArray(1:3) CellArray(5)];
2 comentarios
Azzi Abdelmalek
el 20 de Mzo. de 2013
CellArray is just an example, I guess his array is much bigger.
Antje
el 21 de Mzo. de 2013
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!