simple operations

1 view (last 30 days)
Steven
Steven on 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

Accepted Answer

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

More Answers (0)

Categories

Find more on Migrate GUIDE Apps 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!