How to remove repeat entities in a matlab array

조회 수: 2 (최근 30일)
Et.B200
Et.B200 2020년 11월 10일
댓글: Steven Lord 2020년 11월 11일
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

답변 (1개)

James Tursa
James Tursa 2020년 11월 10일
편집: James Tursa 2020년 11월 10일
unique(your_variable)
or
unique(your_variable,'stable')
  댓글 수: 9
James Tursa
James Tursa 2020년 11월 11일
@Stephen: Good catch! I totally missed that.
Steven Lord
Steven Lord 2020년 11월 11일
@Stephen: I missed that as well.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by