i want generate random binary polynomials parameters (n,m).
n number of polynomials generated , m number of elements of each polynomials.
at same time need it's polynomial unique. , need exclude result elements equal zero.
for example n=3 , m=3 looking [1 0 1] [1 0 0] [1 1 1].
is there command in mat lab can use have above results?? avoid loop if possible!!
edit: found command unique(rand(n,m)>=0.5,'rows') job. not guarantee result [0 0 0] excluded
any ideas?
each of polynoms interpreted binary number between 1 , 2^m-1.
%get random subset of size n x=randperm(2^m-1,n); %convert matrix x=dec2bin(x)-'0';
Comments
Post a Comment