Solve linear system by trial and error
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
carl hooper
el 9 de Sept. de 2018
Comentada: madhan ravi
el 9 de Sept. de 2018
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 comentarios
Respuesta aceptada
madhan ravi
el 9 de Sept. de 2018
Editada: madhan ravi
el 9 de Sept. de 2018
Try this:
syms x a b
assume(x>b)
eqn=x==a+b
sol=solve(eqn,x,'ReturnConditions',true)
sol.x
4 comentarios
madhan ravi
el 9 de Sept. de 2018
Editada: madhan ravi
el 9 de Sept. de 2018
This will display the solution if and only if x greater than any member of b.
Más respuestas (0)
Ver también
Categorías
Más información sobre Calculus en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!