How to remove all rows with the same (specific) elements
조회 수: 2 (최근 30일)
이전 댓글 표시
If I have a, say 20x2 matrix, and I want to remove all rows with the entry 0 (column 1), 0 (column 2), how might I do that (and I want to be able to do it without having prior knowledge of the specific locations)?
M=[ 2 2
1 3
5 7
1 2
0 0
1 2
0 0 ]
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!