How to remove repeat entities in a matlab array

9 Ansichten (letzte 30 Tage)
Et.B200
Et.B200 am 10 Nov. 2020
Kommentiert: Steven Lord am 11 Nov. 2020
I have an array with 17 values within it, I have only one number than appears twice, i want the new identity to have 16 values in it, only including this perticular repeat value only once in the new identity

Antworten (1)

James Tursa
James Tursa am 10 Nov. 2020
Bearbeitet: James Tursa am 10 Nov. 2020
unique(your_variable)
or
unique(your_variable,'stable')
  9 Kommentare
James Tursa
James Tursa am 11 Nov. 2020
@Stephen: Good catch! I totally missed that.
Steven Lord
Steven Lord am 11 Nov. 2020
@Stephen: I missed that as well.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by