how to leave a variable on one side of the equation

15 vues (au cours des 30 derniers jours)
Can
Can le 25 Déc 2014
Réponse apportée : Can le 25 Déc 2014
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?

Réponse acceptée

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

Plus de réponses (2)

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

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

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by