How to remove repeat entities in a matlab array

2 visualizaciones (últimos 30 días)
Et.B200
Et.B200 el 10 de Nov. de 2020
Comentada: Steven Lord el 11 de Nov. de 2020
I have an array with 17 values within it, I have only one number than appears twice, i want the new identity to have 16 values in it, only including this perticular repeat value only once in the new identity

Respuestas (1)

James Tursa
James Tursa el 10 de Nov. de 2020
Editada: James Tursa el 10 de Nov. de 2020
unique(your_variable)
or
unique(your_variable,'stable')
  9 comentarios
James Tursa
James Tursa el 11 de Nov. de 2020
@Stephen: Good catch! I totally missed that.
Steven Lord
Steven Lord el 11 de Nov. de 2020
@Stephen: I missed that as well.

Iniciar sesión para comentar.

Categorías

Más información sobre Particle & Nuclear Physics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by