File Exchange

image thumbnail

groundtrack

version 1.0.0.0 (8.95 KB) by Meysam Mahooti
Projection of the satellite's orbit onto the surface of the Earth

44 Downloads

Updated 09 Feb 2018

View License

Satellite's initial state is computed using six Keplerian elements (kep2cart.m), then its propagated for a day with 30 seconds steps by ode45 function. Afterwards satellite's inertial positions are transformed to Earth-fixed coordinate system and then geodetic coordinates are calculated (Geodetic.m). Finally, geodetic latitudes and longitudes are plotted.

Comments and Ratings (5)

Islam Nazmy

Yo chill out Stephen

A s

I found this script is well designed. To apply it to a real satellite, user will need to calculate real Mean Anomaly at the starting time of interest.

Lady Gaga

Dear Stephen, I'd like comments that reveal bugs of codes and those which try make MATLAB codes comparable with C++ and FORTRAN in speed.

The first lines of the function are:
CLC
CLEAR
FORMAT LONG G
CLOSE ALL
which are a classic sign of https://en.wikipedia.org/wiki/Cargo_cult_programming
What possible purpose does it serve to call CLEAR at the very beginning of a function, when its workspace is entirely empty? Why does the function need to forcefully remove all of my compiled functions with a brutal CLEAR ALL?
Why does the function need to forcefully remove all of my data in the base workspace?
Why does the function have to close all of my open figures?
Why does the function need to change the formatting?
None of these things have anything to do with the *functionality* of this submssion.

Updates

1.0.0.0

Satellite's motion is depicted by animation.

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux