How to solve implicit (symbolic) equations using MuPad

7 Ansichten (letzte 30 Tage)
Karoly Fodor
Karoly Fodor am 14 Okt. 2015
Beantwortet: Walter Roberson am 14 Okt. 2015
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.

Antworten (1)

Walter Roberson
Walter Roberson am 14 Okt. 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])

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by