I think the description and test suite on this problem is slightly off. When I see 'union' I already assume that no duplicates are permitted and order is irrelevant.
Duplicate each element of a vector.
518 Solvers
401 Solvers
483 Solvers
167 Solvers
Find out total non zero element of matrix
194 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!