How to returns combined data from a single vector with no repetitions?
1 view (last 30 days)
Show older comments
The only way is union(A,A)? There is no function with single argument?
0 Comments
Accepted Answer
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
0 Comments
More Answers (0)
See Also
Categories
Find more on Data Types 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!