I would like to remove zeros from my matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
a=[0 0 0; 0 0 0; 1 2 3; 4 5 6]
댓글 수: 3
Rik
2021년 10월 27일
@Aladdin, this is an answer to what might be a homework question. Please consider either moving your comment to the answer section (by deleting this and reposting it) or deleting your comment.
답변 (1개)
Walter Roberson
2021년 10월 27일
a = [0 0 0; 0 0 0; 1 2 3; 4 5 6]
b = rmmissing(standardizeMissing(a, 0))
댓글 수: 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!