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

Categorías

Más información sobre Data Types en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Nov. de 2020

Respondida:

el 23 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by