Convert Time (UT to LT)...

1 Ansicht (letzte 30 Tage)
Ara
Ara am 16 Mär. 2017
Kommentiert: James Tursa am 20 Mär. 2017
Dear All,
I have a data in UT and now I convert it to LT, where LT for each data has a different value (+3,-5,+12,..). Ultimately I want to highlight day and night. I want all of the panel start from 0-24 LT or perhaps 0 become a center and night and day right and left.
Would you please advice me in this regards?
Thanks,
A
  6 Kommentare
James Tursa
James Tursa am 16 Mär. 2017
Again, it would help a lot if you showed a small example with actual numbers. Show us the exact inputs and the desired output.
Ara
Ara am 17 Mär. 2017
I am dealing with a large dataset. But, here is an example to make it more clear:
x=data(:,5);
t=data(:,3)./3600;
plot (t, x); % this is in UT
plot (t+3, x); % This one time is in LT but data also need to be in LT

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Peter Perkins
Peter Perkins am 16 Mär. 2017
It sounds like you have "hour numbers". Use datetimes. Support for time zones is built in, and simple line plots will just work (plotting support increased in R2016b, not sure what you are using).
  3 Kommentare
Peter Perkins
Peter Perkins am 20 Mär. 2017
I'd have to see a concrete example of what you currently have, and what the problem is.
James Tursa
James Tursa am 20 Mär. 2017
I've been asking for this since the 16th ...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by