sorry i mean like this
this is function is Y=generation(N,X)
N is number of bits
X is the generation polynomial function example X^3+X+1;
i need it to extensions to the binary field- finite field GF(2^m);
if i input Y=generation(8,[1 0 1 1])
the output is
000
001
010
100
011
110
111
101
............................
am make one put i have error this is
....................................................
function Y=generation1(N,X)
N>=0;
K=log2(N);
Y(2:K+1,1:K)=eye(K,K);
Yp=Y(2,1:K);
for i=1:N-(K+1)
Yn=Yp(K);
for j=1:K
Z=xor(Yp(j),Yp(K));
Yn(j+1)=xor(Z,X(j+1));
end
Y(K+2+i,:)=Yn(j+1);
Yp=Yn;

hi
i want ask you if you can help me with make function that extensions to the binary field finite field GF(2^m)..
this function is like
function Y=generation (N,X)
N is number of bits
X is the generation polynomials function

sorry i mean like this
this is function is Y=generation(N,X)
N is number of bits
X is the generation polynomial function example X^3+X+1;
i need it to extensions to the binary field- finite field GF(2^m);
if i input Y=generation(8,[1 0 1 1])
the output is
000
001
010
100
011
110
111
101
............................
am make one put i have error this is
....................................................
function Y=generation1(N,X)
N>=0;
K=log2(N);
Y(2:K+1,1:K)=eye(K,K);
Yp=Y(2,1:K);
for i=1:N-(K+1)
Yn=Yp(K);
for j=1:K
Z=xor(Yp(j),Yp(K));
Yn(j+1)=xor(Z,X(j+1));
end
Y(K+2+i,:)=Yn(j+1);
Yp=Yn;
end

hi
i want ask you if you can help me with make function that extensions to the binary field finite field GF(2^m)..
this function is like
function Y=generation (N,X)
N is number of bits
X is the generation polynomials function

Comment only