How to returns combined data from a single vector with no repetitions?
4 views (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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!