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

1 次查看(过去 30 天)
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