> Like this?
>
> v2=(dec2bin(0:(2^4)-1)=='1')
> u2=v2(sum(v2')'==2,:)
In a better single command,
de2bi(0:2^b.modScheme-1)
>
> v2=(dec2bin(0:(2^4)-1)=='1')
> u2=v2(sum(v2')'==2,:)
In a better single command,
de2bi(0:2^b.modScheme-1)