How to manipulate MATRIX size

2 visualizaciones (últimos 30 días)
olodyusuf
olodyusuf el 17 de Mayo de 2020
Comentada: andrea el 17 de Mayo de 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?

Respuestas (1)

madhan ravi
madhan ravi el 17 de Mayo de 2020
[Matrix,zeros(31,104-90)]
  2 comentarios
olodyusuf
olodyusuf el 17 de Mayo de 2020
How can I subtract a certain number, say 10 all through the row and column from 90 - 104?.
andrea
andrea el 17 de Mayo de 2020
Matrix(:, 90:104)-10

Iniciar sesión para comentar.

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by