Solve linear system by trial and error

9 ビュー (過去 30 日間)
carl hooper
carl hooper 2018 年 9 月 9 日
コメント済み: madhan ravi 2018 年 9 月 9 日
I need to solve an equation like x=a+b; putting a condition such that x>b. How can i do that in matlab ?

採用された回答

madhan ravi
madhan ravi 2018 年 9 月 9 日
編集済み: madhan ravi 2018 年 9 月 9 日
Try this:
syms x a b
assume(x>b)
eqn=x==a+b
sol=solve(eqn,x,'ReturnConditions',true)
sol.x
  4 件のコメント
madhan ravi
madhan ravi 2018 年 9 月 9 日
編集済み: madhan ravi 2018 年 9 月 9 日
This will display the solution if and only if x greater than any member of b.
madhan ravi
madhan ravi 2018 年 9 月 9 日
@carl did it satisfy?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by