How to manipulate MATRIX size

2 views (last 30 days)
olodyusuf
olodyusuf on 17 May 2020
Commented: andrea on 17 May 2020
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?

Answers (1)

madhan ravi
madhan ravi on 17 May 2020
[Matrix,zeros(31,104-90)]
  2 Comments
andrea
andrea on 17 May 2020
Matrix(:, 90:104)-10

Sign in to comment.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by