Command to delete last row and column of a matrix
조회 수: 67 (최근 30일)
이전 댓글 표시
Hi,
Can anyone help me with the command to delete the last row and column of a 6 x 6 matrix?
Regards
Swati
댓글 수: 0
채택된 답변
Alex Mcaulley
2020년 1월 28일
A(:,end) = []; %Delete last column
A(end,:) = []; %Delete last row
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!