Advertisement
stiansjogren

homework

May 8th, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1.  
  2. n=15; k=5;
  3. cnt = 0;
  4. 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
  5. gen_matx = zeros(10,20);
  6. for j =0:n-k
  7. for i=1:n-k
  8. gen_matx(i,i+j)= gen_pol(1+j);
  9. end
  10. end
  11.  
  12.  
  13. gen_matx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement