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?

 採用された回答

Aurelien Queffurust
Aurelien Queffurust 2012 年 3 月 16 日

1 投票

doc unique
The unique function find unique elements of vector

1 件のコメント

Ieva
Ieva 2012 年 3 月 16 日
Great, thank you for help! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Shifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by