Adding a row in a matrix.
3 次查看(过去 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 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!