Solve linear system by trial and error
9 ビュー (過去 30 日間)
古いコメントを表示
I need to solve an equation like x=a+b; putting a condition such that x>b. How can i do that in matlab ?
0 件のコメント
採用された回答
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
2018 年 9 月 9 日
編集済み: madhan ravi
2018 年 9 月 9 日
This will display the solution if and only if x greater than any member of b.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!