- #1
stupid6625
- 4
- 0
I has posted on here about 6 months ago about trying to create a MATLAB code for determining the orbital elements of a body about Earth from three separate observing times . I am having trouble with some of the code. The very last command is the "solve" command and it is supposed to solve the two equations in parenthesis, but it returns an error saying "unable to find closed form solution"... any ideas why? or any suggestions for another approach to solve these two equations??--Thanks
R2Magnitude=(sqrt(sum(R2.^2)))^2;
variable=transpose(u2)*R2;
[rho2,rr]=solve('(A+(B/rr^3))-rho2=0','((rho2)^2)+(R2Magnitude)-((2*(rho2))*(variable))-(rr^2)=0');
R2Magnitude=(sqrt(sum(R2.^2)))^2;
variable=transpose(u2)*R2;
[rho2,rr]=solve('(A+(B/rr^3))-rho2=0','((rho2)^2)+(R2Magnitude)-((2*(rho2))*(variable))-(rr^2)=0');