MATLAB: How to make sure that all rows of a matrix are unique

matrixmatrix manipulation

I have X which is a matrix that I want to delete all rows that are similar to make sure that all rows are unique.
Is there a way to do that? Thanks!

Best Answer

Sorry, I didn't notice it's answered before. I found this helpful:
https://www.mathworks.com/matlabcentral/answers/299722-remove-duplicate-rows-from-a-matrix