Delete row with same value but in different columns
2 views (last 30 days)
Show older comments
I have a matrix like:
[1 1 2 1 47 ; 1 1 47 1 2]
How to delete one of the rows and keep the other ?
Thanks
0 Comments
Accepted Answer
Matt J
on 30 Apr 2021
For example, to delete the first row,
A=[1 1 2 1 47 ; 1 1 47 1 2]
A(1,:)=[]
3 Comments
More Answers (0)
See Also
Categories
Find more on Shifting and Sorting 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!