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

1 回表示 (過去 30 日間)
Gobert
Gobert 2016 年 6 月 7 日
回答済み: Gobert 2016 年 6 月 7 日
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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by