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!