How to manipulate MATRIX size

I have a 31 x 90 matrix, I want to add a zeros element all through to make it a 31 x 104. How can I achieve this?

回答(1 个)

[Matrix,zeros(31,104-90)]

2 个评论

How can I subtract a certain number, say 10 all through the row and column from 90 - 104?.
Matrix(:, 90:104)-10

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息

产品

提问:

2020-5-17

评论:

2020-5-17

Community Treasure Hunt

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

Start Hunting!

Translated by