How to remove repeat entities in a matlab array

1 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

类别

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