Write out which values are represented in an array

1 view (last 30 days)
Hello, I have an array. For example [3 4 5 63 5 6 4 3 5 6 4 32]. I need a function that returns the values which are in the array. So the result of the function is: [3 4 5 6 32 63]. I cannot find a solution.
Thank you very much.

Accepted Answer

John D'Errico
John D'Errico on 2 Jan 2018
help unique

More Answers (0)

Categories

Find more on Matrices and Arrays 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!