MATLAB: How to solve this complex equation in matlab complex equation I have an equation exp(pi/4*i)*(5+15i)+exp(i*theta)*(25+5i)=40+exp(i*gama)*(-10+20i) how can I get theta and gama in matlab? THANK YOU Best Answer Try this: syms theta gama Eqn = exp(pi/4*i)*(5+15i)+exp(i*theta)*(25+5i) == 40+exp(i*gama)*(-10+20i);[theta,gama] = vpasolve(Eqn, [theta,gama])There are likely an infinity of solutions. Here is one: theta =- 0.040930734767103408831012033619698 - 0.24192384707974160991614274286353igama = 0.19932582865736336790217825251885 - 0.085773888296270118753805499893846i Related SolutionsMATLAB: How to find symbolic solution for theta1 No.If you solve the first 5 equations for m_c0, j_L0, m_c_theta1, j_L_theta2, m_c_theta2 and substitute that into the 6th equation, then the right hand side will equal the left hand side.In other words you only have 5 independent equations, not 6. MATLAB: Finding roots of trigonometric equation Roots=solve(vr,theta,'maxDegree',4) Related QuestionError using vpasolve-Conversion to ‘sym’ from ‘struct’ is not possible.I want to rewrite the following expression into arctan.Differential equations of time with two parameters given as functions of time.Strange behavior of diff function with symbolic variablesI am getting empty sym for vpasolve
Best Answer