0

I have a linear equation (binary) system:

x+1=0;
x+1=y;
x=1;

It has binary solutions x=1,y=0; But I don't know how to solve this system in matlab, could anybody help? Thanks so much!

woss
  • 63
  • 4
  • Try looking at `intlinprog`: http://www.mathworks.com/help/optim/ug/intlinprog.html – rayryeng Sep 28 '15 at 05:57
  • Your first equation would indicate _x=-1_. Your third equation says _x=1_. That is somewhat contradictory. – RPM Sep 28 '15 at 07:14
  • @RPM not necessarily. If this is in the Galois Field of 2 (GF-2) domain, this is binary addition modulo 2 so 1+1=0...but that hasn't been made clear by the OP. – rayryeng Sep 28 '15 at 13:24

0 Answers0