Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 ... etc
- gen_matx = zeros(10,20);
- for j =0:n-k
- for i=1:n-k
- gen_matx(i,i+j)= gen_pol(1+j);
- end
- end
- gen_matx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement