Strengthen your programming skills with tips and techniques from the experts
![Find the unique rows of a numeric matrix](https://blogs.sas.com/content/iml/files/2017/01/ProgrammingTips-2.png)
Sometimes it is important to ensure that a matrix has unique rows. When the data are all numeric, there is an easy way to detect (and delete!) duplicate rows in a matrix. The main idea is to subtract one row from another. Start with the first row and subtract it