Sort without duplicate

63 vues (au cours des 30 derniers jours)
Ieva
Ieva le 16 Mar 2012
Hi,
I want to sort a vector leaving only unique values.
For example, if I have:
1
2
2
3
4
4
5
I want to get
1
2
3
4
5
Could anybody help me to solve this?

Réponse acceptée

Aurelien Queffurust
Aurelien Queffurust le 16 Mar 2012
doc unique
The unique function find unique elements of vector
  1 commentaire
Ieva
Ieva le 16 Mar 2012
Great, thank you for help! :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices 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