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!