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개)
Walter Roberson
2020년 11월 23일
[~, a]=findgroups(d);
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!