How to remove repeat entities in a matlab array

1 vue (au cours des 30 derniers jours)
Et.B200
Et.B200 le 10 Nov 2020
Commenté : Steven Lord le 11 Nov 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

Réponses (1)

James Tursa
James Tursa le 10 Nov 2020
Modifié(e) : James Tursa le 10 Nov 2020
unique(your_variable)
or
unique(your_variable,'stable')
  9 commentaires
James Tursa
James Tursa le 11 Nov 2020
@Stephen: Good catch! I totally missed that.
Steven Lord
Steven Lord le 11 Nov 2020
@Stephen: I missed that as well.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Particle & Nuclear Physics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by