m = 256;n = 56;A = 255*ones(m,m);d = (m-n)/2;A(d:d+n-1,d:d+n-1) = 0;B = uint8(A);imshow(B)
...A(d+1:d+n,d+1:d+n) = 0;...