unique(X,'rows','stable')
Deleting Repeated Rows in a matrix
30 次查看(过去 30 天)
显示 更早的评论
I need to delete duplicate rows in a matrix. I used "unique" function it deletes the duplicate rows but "re-orders" the rows in ascending order which I don't require. I need the first instance of the duplicate be kept as it is and all subsequent instances be deleted.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!