Solving linear systems with binary solutions

2 ビュー (過去 30 日間)
no
no 2015 年 9 月 28 日
回答済み: Walter Roberson 2015 年 9 月 29 日
Hi, I have a linear equation system:
x+1=0;
x+1=y;
x=1;
It seems that is has no solution. But the solution of x and y should be binary bits. In this case, the solution is x=1,y=0.However, I don't know how to solve this system in Matlab. Could anybody help? Thanks so much!!

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 29 日
That is, you can express your linear system in the form A*x = b, and you have known A and b, so you can do boolean_inverse(A)*A*x = boolean_inverse(A)*b so x = boolean_inverse(A)*b

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by