Sort without duplicate

조회 수: 64 (최근 30일)
Ieva
Ieva 2012년 3월 16일
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일
doc unique
The unique function find unique elements of vector
  댓글 수: 1
Ieva
Ieva 2012년 3월 16일
Great, thank you for help! :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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