Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Plotting an array of Julian Times on the x axis of a plot

1 visualizzazione (ultimi 30 giorni)
I several arrays of dates in the format: '20260 22:33:11.000', '20260 22:33:21.000', '20260 22:33:31.000' and so on. This is yyDDD HH:mm:ss:SSS format as far as I can tell, with the date being September 19th but for some reason when this gets plotted using a generated code plot function, it goes over multiple days, even though my data from the figure only goes across one day. I believe there is something wrong with the formatting but I am not sure.
I have attached my .m file here. Please let me know if you need any other information
  2 Commenti
J. Alex Lee
J. Alex Lee il 29 Set 2020
your file has no reference to any of your time data and can't be run because no one has access to your figs.
Eric Sofen
Eric Sofen il 2 Ott 2020
I would recommend parsing your timestamps into datetimes. Then the chart will take care of the complexities of plotting versus time.
e.g.
>> d = datetime('20260 22:33:11.000','InputFormat','yyDDD HH:mm:ss.SSS')

Risposte (0)

Prodotti


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by