for example I need to delete one out of two rows whose numbers in column 1&2 are the same. At the same time the deleted row should have a smaller number in column 3. I know the unique command but don't know how to use in this situation. Thanks in advance. I have a=[1,2,3; 1,2,4; 5,6,7; 5,6,8];I want to get b=[1,2,4;5,6,8]
MATLAB: How to delete rows with some repeated elements
delete rows
Related Question
- Find unique sets of values in matrix, eliminate duplications
- How to delete the duplicate rows in cell based on a particular column
- Finding matching rows in matrix for multiple points without a loop
- Remove repeated rows to produce two new matrices
- Find unique rows comparing 2 colums
- Sort cell elements according to one column
- Find missing element between two matrix
Best Answer