MATLAB: Simple operations

operationsvector

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

Best Answer

a = [0 0 1 2 2 2 7];
b = unique(a);
b = [0 1 2 7]