How can I find unique rows in a matrix, with no element order within each row?

后端 未结 4 731
一整个雨季
一整个雨季 2020-12-10 09:30

I have an array comprising n rows and 4 colums. Each of the four entries on the row is an integer, i.e.,

X = [
       111 112 432   2
         6   9 115 111
         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 09:59

    you should sort the rows first, then use unique(A,'rows') as HPM suggests

提交回复
热议问题