To add rows and columns in the start and at the end for a matrix

조회 수: 1 (최근 30일)
Amjad Iqbal
Amjad Iqbal 2021년 10월 10일
댓글: Amjad Iqbal 2021년 10월 10일
Dear Researchers,
I need guidance to add rows and columns of ones/zeros in a marix.
i.e matrix should be 13642 * 25295, and matrix I obtained after some processing is now 12251 * 25293.
Now, I need to add lets suppose half of missing rows in start and half missing rows at the end, the same for columns.
Please guide me in this context, your suggestions will be highly appreciated. Looking forward to receive comments on it.

채택된 답변

Matt J
Matt J 2021년 10월 10일
  댓글 수: 3
Matt J
Matt J 2021년 10월 10일
Just call it twice, one with "pre" and once with "post, each with the respective amount of padding required.
Amjad Iqbal
Amjad Iqbal 2021년 10월 10일
Yeah, i got the spectrum, thanks a lot for your kind suggestions. it helps.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by