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

1 view (last 30 days)
The only way is union(A,A)? There is no function with single argument?

Accepted Answer

Mischa Kim
Mischa Kim on 30 Mar 2015
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

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!