How to solve the following non linear system of equations?
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169634/image.jpeg)
Considering that the only unknows are q11, q21, q12, q22, is there any matlab function to get the solution? Is there a possibility that there exists no solution? We have 4 equations and 4 unknonws, the other variables apart from q11, q21, q12, q22 are all known.
3 个评论
Walter Roberson
2017-11-15
It looks plausible that you could use the symbolic toolbox. However, I can see that if there are any solutions there are multiple solutions due to the ^2 of the second two equations; and the cos() and sin() and cosh() and sinh() make it likely that there are an infinite number of solutions.
These look to me to possibly be rotation matrices such as for a robot arm. Such equations seldom have unique solutions.
回答(1 个)
Bshara Murr
2017-11-16
编辑:Bshara Murr
2017-11-17
Not sure how do you read your system and get 4 equations with 4 unknowns. However for such problems you must use the symbolic toolbox if you want the computer to generate your system. And try slove it will do the work. I have worked on a similar problem but i have forgotten all the details on how i did it. If you want i can send you the code. But as far as i remember "solve" solves nonlinear equations.
2 个评论
Walter Roberson
2017-11-16
The notations indicate that q11, q12, q21, q22 are the unknowns; everything else is to be presumed known.
The first two equations are det() equal to 0; the last two equations have the difference of a couple of ^2 terms equal to 0. That gives four equations and four unknowns.
However... I cannot seem to find any msolve()
Bshara Murr
2017-11-17
编辑:Bshara Murr
2017-11-17
yes i am sorry the function is solve my bad, i'll fix it in my answer.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Boundary Conditions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!