function a = cikcakk(n) a = 2 * ones(3, n); a(1, 1:2:end) = 1; a(3, 2:2:end) = 1; end