Deleting rows with specific index
조회 수: 64 (최근 30일)
이전 댓글 표시
Hi all, I want to delete rows with specific index number in my matrix and remove it from the matrix not assigning zero. For example I have a matrix with 400 row and I want to remove the rows with index =[ 6 13 16 25 30 86] What should I do? Thanks
댓글 수: 0
답변 (1개)
per isakson
2012년 3월 31일
Try
Matrix( [6 13 16 25 30 86], : ) = [];
and learn how to use the Matlab documentation
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!