Solve linear system by trial and error
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
madhan ravi
le 9 Sep 2018
Modifié(e) : madhan ravi
le 9 Sep 2018
Try this:
syms x a b
assume(x>b)
eqn=x==a+b
sol=solve(eqn,x,'ReturnConditions',true)
sol.x
4 commentaires
madhan ravi
le 9 Sep 2018
Modifié(e) : madhan ravi
le 9 Sep 2018
This will display the solution if and only if x greater than any member of b.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!