Eliminate duplicate values in a row!

조회 수: 5(최근 30일)
Raviteja
Raviteja 2011년 9월 12일
>> A
A =
2 3 5 6 6 9 9 11 12 16
I want eliminate duplicate values in A so that A should be
>>A
A=
2 3 5 6 9 11 12 16
How to do this in single line?

채택된 답변

Lucas García
Lucas García 2011년 9월 12일
unique(A)
  댓글 수: 1
Raviteja
Raviteja 2011년 9월 12일
Thanks!

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

추가 답변(0개)

범주

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by