MATLAB Answers

How to remove duplicates from a matrix without using unique?

1 view (last 30 days)
Dayi
Dayi on 23 Nov 2020
Answered: John D'Errico on 23 Nov 2020
d = [1 6 -1 5 6 7 0 5 6 0 8 0]
a = [-1 0 1 5 6 7 8]
How can I convert the vector d to vector a?
Please dont use unique

  0 Comments

Sign in to comment.

Answers (2)


John D'Errico
John D'Errico on 23 Nov 2020
How could you use the output of a sort to help? Why not make an effort?

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!