How to manipulate MATRIX size

조회 수: 1 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by