I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
조회 수: 9 (최근 30일)
이전 댓글 표시
I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
댓글 수: 0
채택된 답변
추가 답변 (1개)
Joseph Cheng
2014년 3월 31일
편집: Joseph Cheng
2014년 3월 31일
If you want to completely remove these columns you can use [] ;
example:
Testmatrix = rand(4,12540);
Testmatrix(:,5:end) = [];%All rows in columns 5 through end are blank;
댓글 수: 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!