function a = nyil(n) a = ones(n) + eye(n); a(1, 2:end) = 2; a(2:end, 1) = 2; end