Part 4-- xy_solv_4.m
function [xy]=xy_solv_4(theta)
L_1=3;
L_2=3*sqrt(2);
L_3=L_1;
p_1=5;
p_2=p_1;
p_3=3;
x_1=5;
x_2=0;
y_2=6;
gamma=pi*(1/4);
A_2=L_3*cos(theta)-x_1;
B_2=L_3*sin(theta);
A_3=L_2*cos(theta+gamma)-x_2;
B_3=L_2*sin(theta+gamma)-y_2;
D=2*(A_2*B_3-B_2*A_3);
N_1=B_3*(p_2^2-p_1^2-A_2^2-B_2^2)-B_2*(p_3^2-p_1^2-A_3^2-B_3^2);
N_2=-1*A_3*(p_2^2-p_1^2-A_2^2-B_2^2)+A_2*(p_3^2-p_1^2-A_3^2-B_3^2);
x_sol=N_1/D;
y_sol=N_2/D;
xy=[x_sol y_sol];
end
Not enough input arguments.
Error in xy_solv_4 (line 24)
A_2=L_3*cos(theta)-x_1;