Adding a row in a matrix.

조회 수: 2 (최근 30일)
Alexandros Polykarpou
Alexandros Polykarpou 2012년 12월 6일
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

채택된 답변

Fangjun Jiang
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;
  댓글 수: 1
Alexandros Polykarpou
Alexandros Polykarpou 2012년 12월 6일
I could go to my workspace and add the rows i needed using the excel interface. I think your solution is good enough for me. Thanks a lot. Appreciate it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by