Sort without duplicate

57 Ansichten (letzte 30 Tage)
Ieva
Ieva am 16 Mär. 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?

Akzeptierte Antwort

Aurelien Queffurust
Aurelien Queffurust am 16 Mär. 2012
doc unique
The unique function find unique elements of vector
  1 Kommentar
Ieva
Ieva am 16 Mär. 2012
Great, thank you for help! :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by