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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by