How can I count the number of vector elements without repetition?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hadeer Mostafa
el 11 de Nov. de 2016
Respondida: dpb
el 11 de Nov. de 2016
Hi, I have a vector that contains repeated elements, How can I count the number of vector elements without repetition?
For example: a=[2 5 2 8 9 8 7 8 1]; I expect the result will be: count = 6
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Time Series en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!