Sort without duplicate

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

1 Stimme

doc unique
The unique function find unique elements of vector

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by