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



Binary combination
Posted:
Feb 26, 2012 3:04 PM


Hi, im doing a knapsack problem, and I need to get a binary combination of four variables: 0 0 0 0 0 0 0 1 0 0 1 0
I already get that using the function dec2bin(0:2^n1) but when I used to do some calculation with double matrix matlab get error.
Anyone know how to solve it? get the binary combination and still be able to do some maths?
Regards,
Tiago Sousa



