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!