Orbit Determination with Matlab Revisited

Another approach could be to re-arrange the equations into a linear form, but this may not be possible.In summary, the individual is having trouble with their MATLAB code for determining orbital elements and is receiving an error when using the "solve" command. This is likely because the equations are not linear and the individual may need to use a numerical solver or re-arrange the equations to find a solution.
  • #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');
 
Physics news on Phys.org
  • #2
The error you are getting is likely because the equations are not linear, and MATLAB's "solve" command only works for linear equations. If you want to solve these equations, you could use one of the numerical solvers in MATLAB such as fsolve or fzero. These numerical solvers require an initial guess for the solution, so you will need to determine a reasonable starting point for your equations.
 
  • #3


It is difficult to give a specific answer without seeing the code and understanding the context of the problem. However, here are a few suggestions that may help:

1. Check your equations and make sure they are correct. Double-check the syntax and variables used in the "solve" command.

2. Make sure you have defined all the necessary variables and parameters before running the code.

3. Consider using a different solver method, such as "fsolve", which may be more suitable for your equations.

4. Break down the problem into smaller steps and check the results at each step. This can help identify where the error may be occurring.

5. Consider using a different approach altogether, such as using a different software or algorithm for orbit determination.

In general, it is always a good idea to carefully review your code and make sure all the inputs and outputs are correct before running it. Good luck with your project!
 

1. What is "Orbit Determination with Matlab Revisited"?

"Orbit Determination with Matlab Revisited" is a book that provides a comprehensive guide to using Matlab for orbit determination. It covers topics such as coordinate systems, Keplerian orbits, orbit propagation, and measurement modeling.

2. What are the benefits of using Matlab for orbit determination?

Matlab offers a user-friendly interface and powerful computational capabilities, making it an ideal tool for orbit determination. It also has a wide range of built-in functions and toolboxes that can assist with various aspects of the process.

3. Can beginners use "Orbit Determination with Matlab Revisited"?

Yes, the book is designed for both beginners and experienced users. It includes detailed explanations and step-by-step instructions, making it accessible to those with little or no prior knowledge of orbit determination.

4. Is "Orbit Determination with Matlab Revisited" applicable to all types of orbits?

Yes, the book covers orbit determination for a wide range of orbits, including circular, elliptical, and highly eccentric orbits. It also explores techniques for dealing with perturbations and non-Keplerian motion.

5. Are there any practical examples included in "Orbit Determination with Matlab Revisited"?

Yes, the book includes several practical examples and exercises to help readers apply the concepts and techniques learned. These examples cover various scenarios and can be easily adapted for different applications.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
553
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
8K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
1K
Back
Top