If any of the matrix element or elements value is 1 or greater than 1 , then how can I delete that row or rows from a (M * N) matrix ?
조회 수: 1 (최근 30일)
이전 댓글 표시
댓글 수: 0
채택된 답변
KSSV
2022년 12월 26일
A = [2 4 1; 4 5 2 ; 2 4 1 ;3 1 3; 2 6 3] ;
idx = any(A==1,2) ;
A(idx,:)=[];
A
댓글 수: 2
추가 답변 (1개)
Image Analyst
2022년 12월 26일
To learn other fundamental concepts, invest 2 hours of your time here:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!