how to leave a variable on one side of the equation

6 次查看(过去 30 天)
hello, and sorry for i don't know and couldn't find the exact term in english to specify what i'm looking for so i'm going to try to explain it in a verbal way. for example, if i have an equation as:
-3*a+2*b==10*sin(c)
(with a, b and c being independent sym variables) and want to find b as:
b==(10*sin(c)+3*a)/2
what function should i use?

采纳的回答

Matt J
Matt J 2014-12-25
I think you could just do
solve(-3*a+2*b==10*sin(c), b)

更多回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-12-25
s='-3*a+2*b==10*sin(c)'
out=solve(s,'b')

Can
Can 2014-12-25
Oh I've thought solve function only returns numerical results for like one variable equations only. Thanks to both of you!

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by