Finding x from function - symbolics
Ältere Kommentare anzeigen
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!
Antworten (1)
Star Strider
am 6 Mai 2015
0 Stimmen
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 Kommentare
kamil oster
am 6 Mai 2015
Bearbeitet: kamil oster
am 6 Mai 2015
Walter Roberson
am 6 Mai 2015
syms x a b
y = a*x+b;
solve(y, x)
Star Strider
am 6 Mai 2015
Thank you, Walter.
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!