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?
Asked
Active
Viewed 644 times
0

nbro
- 15,395
- 32
- 113
- 196

Simplicity
- 47,404
- 98
- 256
- 385
-
11. Just try it. 2. If you don't understand what the function does, you don't need it – Ben Voigt Apr 20 '13 at 20:02
-
Seems you do not want to give the documentation a try. – Oleg Apr 20 '13 at 22:07
1 Answers
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