Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Matlab 中,有一个名为padarray的函数。我不明白"post"函数的价值。你能用一个例子来描述它吗?
"post"
所以我会尽量清楚:
A = magic(2); A = 1 3 4 2 B = padarray(A,[0 1],'circular','post') B = 1 3 1 4 2 4
post仅在沿每个维度的最后一个数组元素之后填充:在这种特殊情况下,仅沿维度2,因为[0 1]作为padarray.
post
2
[0 1]
padarray
PS: MATLAB 用户手册通常有很多关于任何内置函数的示例。