Eliminate duplicate values in a row!

조회 수: 2 (최근 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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by