How to solve implicit (symbolic) equations using MuPad
Afficher commentaires plus anciens
I am trying to solve a simple system of three equations in MatLab. Trouble is, they are all symbolic.
The three equations are the following:
ez = k
er = i*cos(theta) + j*sin(theta)
et = -i*sin(theta) + j*cos(theta)
I want to solve for i, j and k in Matlab, which will probably require MuPad.
Obviously, the answers are i = er*cos(theta) - et*sin(theta)... etc., but I need to be able to do it in the program as well.
Réponses (1)
Walter Roberson
le 14 Oct 2015
syms i j k
solve( ez == k, er == i*cos(theta) + j*sin(theta), et = -i*sin(theta) + j*cos(theta), [i, j, k])
Catégories
En savoir plus sur Common Operations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!