help with systems in matlab

Hello
I must solve a system like this (link posted above) in Matlab, and do not know how to write this system with this type of equations. Unknown variables are: Yj1 and Zj1.
Can someone explain how to write the system in MATLAB and to show my solutions?
sorry for the crappy english

 채택된 답변

Walter Roberson
Walter Roberson 2011년 9월 13일

0 개 추천

Unfortunately the image is too small for me to make out the equations for sure. The best I can make out at the moment is:
(yf1 + f/(2*sqrt(3))^2 + zf1^2 = rf^2
(yf1 - y0 + e/(2*sqrt(3)))^2 + (zf1 - z0)^2 = (re^2 - x0^2)
I do not find any yj1 or zj1 : the letter I find seems to be 'f', not 'j'.
I am not certain of the subscript that I have given above as 'z0', and I am not certain of the subscript that I have given above as 're'.
In the second equation, I am not certain that if 'e' that is being divided by 2*sqrt(3) is a variable named "e" or if it is the base of the natural logarithms (2.717...)
If the equations are similar to what I have written out, then you would be able to solve them easily using solve() from the symbolic toolbox, or manually without any great difficulty by using the well-known quadratic formula.
You might end up with a total of 4 solutions, some of which might be complex.

추가 답변 (1개)

Lucian
Lucian 2011년 9월 16일

0 개 추천

>> f=[((ij1 +0.08)^2 +zj1^2+(-0.16^2)), ((ij1-0.13+0.02)^2+zj1^2+(-0.23^2+0.1^2))]; SOLUTION = solve(f(1), f(2));
>> Solution1 = [SOLUTION.ij1(1), SOLUTION.zj1(1)]
Solution1 =
[ -29/950, 20895^(1/2)/950]

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by