I want to overwrite some specific border lines in Matlab, can anyone help ?

1 次查看(过去 30 天)
Hello!
I have a situation like this:
And, I want to use the encircled lines for padding so that I can obtain a new situation that looks like this:
Can anyone help me to write a Matlab code that can do this ?
Thank you!

采纳的回答

Gobert
Gobert 2016-6-7
A = magic(4)
B = circshift(A,[1 1])
C = padarray(B(2:end,2:end),[1 1],'replicate','pre')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by