Adding a row in a matrix.
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi guys,
I am currently having a 31x10 matrix. I want to add two rows at the end of this matrix so it becomes 33x10 using a command. ( I know how to do it manually). Is it possible for this to happen?
Thank you
댓글 수: 0
채택된 답변
Fangjun Jiang
2012년 12월 6일
What do you mean by command or manually? This would do it although it is not a good practice.
a=rand(31,10);
a(33,10)=0;
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!