how to remove some row or column of a matrix at once?
조회 수: 3 (최근 30일)
이전 댓글 표시
lets say i have a 100x100 matrix and i want to remove row 71-100 so it become 100x70 matrix
댓글 수: 0
답변 (2개)
Sean de Wolski
2012년 11월 6일
Note you say row but the new size of your matrix removed columns
Here are two ways to remove columns:
x = x(:,1:70); %glass half full
or
x(:,71:end) = []; %glass half empty
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!