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!