simple operations

1 Ansicht (letzte 30 Tage)
Steven
Steven am 10 Nov. 2011
Hi, I'm seeking the way to erase repeated value into vector, like this:
a = [0 0 1 2 2 2 7];
b = something(a);
b = [0 1 2 7]
thx

Akzeptierte Antwort

Dr. Seis
Dr. Seis am 10 Nov. 2011
a = [0 0 1 2 2 2 7];
b = unique(a);
b = [0 1 2 7]

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by