Deleting Repeated Rows in a matrix
Show older comments
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.
Answers (1)
Stephen23
on 27 Mar 2016
unique(X,'rows','stable')
Categories
Find more on Data Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!