Remove the entire row from the matrix on the basis of column having duplicate value
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahsan Abbas
am 30 Mär. 2016
Kommentiert: Ahsan Abbas
am 31 Mär. 2016
Hello Guys I have a matrix A that contains duplicate values in row 3,4 from column 3 to 6. I want to remove the entire 4th row, or both rows, how can i do it without using the loop?. what if i have similar problem in more rows, what's the syntax for this? I want to solve it in 1 line, help me to solve the problem. Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159437/image.jpeg)
3 Kommentare
Image Analyst
am 30 Mär. 2016
Bearbeitet: Image Analyst
am 30 Mär. 2016
You may have to give up the one line requirement unless you want to just string multiple lines of code together on one line, which you can do. I think you could do that with Jan's 2 line code below.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!