0

In Matlab, there is a function called padarray. I didn't understand the "post" value of the function. Can you describe it in terms of an example?

nbro
  • 15,395
  • 32
  • 113
  • 196
Simplicity
  • 47,404
  • 98
  • 256
  • 385

1 Answers1

1

So I will try to be clear:

A = magic(2);
A =

 1     3
 4     2
B = padarray(A,[0 1],'circular','post')
B =

 1     3     1
 4     2     4

post only pads after the last array element along each dimension: in this particular case, only along dimension 2 because of [0 1] as second input in padarray.

P.S.: MATLAB user manual is usually quite plenty of examples about any built-in function.

fpe
  • 2,700
  • 2
  • 23
  • 47