To plot ephemeris time on the x-axis of a matlab plot, you first need to convert it to matlab time format. The following code shows an example of how to do this:
main.m244 chars11 lines
In this example, y_data
represents your data that you want to plot against ephemeris time. The epoch
variable is the ephemeris time in Julian Date format.
The ephemeris time is converted to the matlab time format (in seconds) using the formula (epoch - 2451545) * 86400
. This formula is based on the fact that the matlab time format is based on the number of seconds that have elapsed since January 1, 2000 at 00:00:00 UTC, which corresponds to Julian Date 2451545.
Finally, the plot is created with the x-axis labeled as "Ephemeris Time" using the xlabel()
function.
gistlibby LogSnag