How to solve implicit (symbolic) equations using MuPad
6 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 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])
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!