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
2020-11-10
编辑:James Tursa
2020-11-10
unique(your_variable)
or
unique(your_variable,'stable')
9 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!