MATLAB: How i get the x and y value with two given eqation

two equation with 2 unknowns

Xc(4) = 0.9304, Yc(4) = 0.9304
2014 version
R = 25
modifying given equations as follows
syms x y
N1 = ((x-Xc(4)).^2) + ((y-Yc(4)).^2)== (R^2)
N2 = (x^2 + y^2 == R^2)
PX = solve(N1)
PY = solve(N2)
i have to get the value of x and y

Best Answer

Xc = 0.9304;
Yc = 0.9304;
R = 25;
syms x y
N1 = ((x-Xc).^2) + ((y-Yc).^2)== (R^2);
N2 = (x^2 + y^2 == R^2);
sol=solve([N1,N2],[x,y]);
x=vpa(sol.x,4)
y=vpa(sol.y,4)
Two values are found for x and y separately. Choose the one you want.
Related Question