How to remove duplicates from a matrix without using unique?

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

답변 (2개)

John D'Errico
John D'Errico 2020년 11월 23일

1 개 추천

How could you use the output of a sort to help? Why not make an effort?

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

질문:

2020년 11월 23일

답변:

2020년 11월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by