n=15; k=5;cnt = 0;gen_pol = [1 1 1 0 0 1 0 1 1 0 1]; % g(x) = g0 + g1*x + g2*x^2 + g5*x^5 ... etcgen_matx = zeros(10,20);for j =0:n-k for i=1:n-k gen_matx(i,i+j)= gen_pol(1+j); endend gen_matx
n=15; k=5;cnt = 0;gen_pol = [1 1 1 0 0 1 0 1 1 0 1]; % g(x) = g0 + g1*x + g2*x^2 + g5*x^5 ... etcgen_matx = zeros(10,20);for j =0:n-k for i=1:n-k gen_matx(i,i+j)= gen_pol(1+j); endend gen_matx
Comments