Delete a row if it contains a specific number of zeros
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi there,
I have a 1000x12 matrix and i want to eleminate all the rows, where the number of zeros is larger than 3.
Is there a simple trick to do this?
Best regards
댓글 수: 0
답변 (1개)
Bhuvnesh Singh
2018년 2월 26일
Try to run the attached code to delete the rows with zeros greater than 2.
댓글 수: 0
참고 항목
카테고리
Help Center 및 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!