Matlab remove duplicate data in matrix

aa =

1 2 3

12 13 14

7 8 9
1 2 3

bb = unique (aa, 'rows')% will be sorted automatically

bb =

1 2 3
7 8 9
12 13 14

bb = unique (aa, 'rows', 'stable')% will not be sorted automatically

bb =

1 2 3
12 13 14
7 8 9

Guess you like

Origin www.cnblogs.com/yibeimingyue/p/12695259.html