How to Remove Repeated Row-Vector in a Matrix ?

1 view (last 30 days)
A=
[201 19,2 3,5 -0,35 210 19,2 3,5 -0,37
202 19,2 -3,5 -0,35 212 19,2 -3,5 -0,37
210 19,2 3,5 -0,37 201 19,2 3,5 -0,35
212 19,2 -3,5 -0,37 202 19,2 -3,5 -0,35]
I need To delete duplicate Rows,
row 1 and row 3, (and row 2 and row 4) have the same elements in different order, so 'unique' doesn't work.
I can't reorder elements, I need them in this order.
thanks

Answers (1)

KSSV
KSSV on 11 Feb 2020
iwant = unique(A,'rows') ;

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!