Delete specific rows from a matrix
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Honglei Chen
2014년 8월 18일
편집: Honglei Chen
2014년 8월 18일
A(any(A==1,2),:) = []
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!