Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab 2-D Simulation for TLI (Trans Lunar Injection) Basic Orbital Mechanics

  1. Apr 23, 2009 #1
    Matlab 2-D Simulation for TLI (Trans Lunar Injection) "Basic Orbital Mechanics"

    Hi Everyone,

    I have been assigned a project in which I am to program in matlab the solution to the 3-body problem, but in 2-D with a couple assumptions.

    1) Earth and Moon are stationary.
    2) Mass of spaceship is constant
    3) Spaceship initially in circular orbit 20km above earth

    Here is my problem, the school does not offer a class in matlab programming. So I looked all over for some sample codes I could modify.

    I found one that seems to be a great start but I do not fully understand it. I was hoping someone on here could help.

    I file 'orbit.m' call upon 'orbitode.m' which I believe is a standard example script for matlab. However I keep getting the error 'no default parameters set' as well as two others. Can someone please please help me figure this out.

    If I could just get the file 'orbit.m' working I think I can get the rest. Also if anyone would like to briefly explain what is going on i.e. how matlab is working or what exactly it is doing that would be great!

    Thanks in advance for all your help.
     

    Attached Files:

  2. jcsd
  3. Jun 1, 2009 #2
    Re: Matlab 2-D Simulation for TLI (Trans Lunar Injection) "Basic Orbital Mechanics"

    this is what i was looking for! thanks so much! helped a lot!

    simulation rachat de credit
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Matlab 2-D Simulation for TLI (Trans Lunar Injection) Basic Orbital Mechanics
  1. Orbit Simulator (Replies: 17)

  2. Orbital simulation (Replies: 11)

Loading...