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 ?

采纳的回答

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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by