function x = x_n(n,k,a) %STAT Interesting statistics. x1 = [1 2 0.5 1]; x = zeros(size(n)); x(9+a:12+a) = x1; if k < 0 x=x(end:-1:1); end end