Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Simulate the orbit of Jupiter around the Sun.
- m = 1.8986 * 1e27;
- dist_from_sun = 7.779 * 1e11;
- init_v = 13.06 * 1e3;
- days = 4332;
- % Compute the orbit of the planet
- [TJup, YJup] = orbit(m, dist_from_sun, init_v, days);
- figure(3)
- % Animate
- animate_orbit(TJup, YJup)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement