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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by