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

后端 未结 4 740
一整个雨季
一整个雨季 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 10:16

    To quote from the documentation:

    b = unique(A, 'rows') returns the unique rows of A.

    Is that what you want ?

提交回复
热议问题