Eliminate duplicate values in a row!

2 visualizzazioni (ultimi 30 giorni)
Raviteja
Raviteja il 12 Set 2011
>> 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?

Risposta accettata

Lucas García
Lucas García il 12 Set 2011
unique(A)

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by