0

Could you please tell me how can I remove symmetric rows from matrix in Matlab? For example if

X=[1 2 3; 
   4 5 6;  
   1 2 3] 

I would like to get

Y=[1 2 3; 
   4 5 6]

by removing the third row.

Dan
  • 45,079
  • 17
  • 88
  • 157
  • 1
    If you mean something different from duplicate rows when you say 'symmetric' then please edit your question to explain further and add an example demonstrating the difference. – Dan Jan 15 '15 at 10:36

1 Answers1

0

If you want to delete duplicate rows then try using unique:

Y = unique(X,'rows')
Dan
  • 45,079
  • 17
  • 88
  • 157