Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
all possible combinations for n bits in a m bit word
Replies:
6
Last Post:
Mar 11, 2013 7:12 AM



HH
Posts:
456
Registered:
12/6/04


Re: all possible combinations for n bits in a m bit word
Posted:
Mar 11, 2013 7:12 AM


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



