How to manipulate MATRIX size

2 ビュー (過去 30 日間)
olodyusuf
olodyusuf 2020 年 5 月 17 日
コメント済み: andrea 2020 年 5 月 17 日
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 件)

madhan ravi
madhan ravi 2020 年 5 月 17 日
[Matrix,zeros(31,104-90)]
  2 件のコメント
olodyusuf
olodyusuf 2020 年 5 月 17 日
How can I subtract a certain number, say 10 all through the row and column from 90 - 104?.
andrea
andrea 2020 年 5 月 17 日
Matrix(:, 90:104)-10

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by