MATLAB: How to returns combined data from a single vector with no repetitions

setvector

The only way is union(A,A)? There is no function with single argument?

Best Answer

Not quite sure what you are trying to do. Do you mean:
A = [1 2 2 3 3 3];
B = unique(A)
B =
1 2 3