Delete specific rows from a matrix
Ältere Kommentare anzeigen
Hi all,
i want to delete rows which with the values 1 in their columns, how can i do it ?
For example:
A= [7,7;2,2;1,1;3,3]
Becomes
A=[7,7;2,2;3,3]
Thank you !
P.s I've searched other posts before posting this .. couldn't find any help
Akzeptierte Antwort
Weitere Antworten (1)
Honglei Chen
am 18 Aug. 2014
Bearbeitet: Honglei Chen
am 18 Aug. 2014
A(any(A==1,2),:) = []
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!