Finding x from function - symbolics
이전 댓글 표시
Hi, I'm looking for a command to find x from my function (it's a bit long function but i'm writing an example): y=ax+b (for example), and i wanna transform it to expression: x=... by command (I mean determination x from this equation). It's all symbolics. Please, help me!
답변 (1개)
Star Strider
2015년 5월 6일
0 개 추천
Use the solve function. Note that since your function is longer than your example (and we do not know what it is), it may not have an analytic solution in x.
댓글 수: 3
kamil oster
2015년 5월 6일
편집: kamil oster
2015년 5월 6일
Walter Roberson
2015년 5월 6일
syms x a b
y = a*x+b;
solve(y, x)
Star Strider
2015년 5월 6일
Thank you, Walter.
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!