Pad array
pads arrayB
= padarray(A
,padsize
)A
with an amount of padding in each dimension specified bypadsize
. Thepadarray
function pads numeric or logical images with the value0
and categorical images with the category
. By default,paddarray
adds padding before the first element and after the last element of each dimension.