The Math Forum

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.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Binary combination
Replies: 2   Last Post: Feb 26, 2012 4:31 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tiago Sousa

Posts: 14
Registered: 7/31/10
Binary combination
Posted: Feb 26, 2012 3:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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^n-1) 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?


Tiago Sousa

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.