plotting epoch time with nanoseconds
古いコメントを表示
Hello:
I got two sets of data, both are epoch time with nano seconds, shown as below:

when I try to plot them, I got two exact same lines, as shown below:

How can I plot the difference in these two lines, i.e. bring up the precision including nano seconds, please?
Thank you in advance for any help.
Regards.
採用された回答
その他の回答 (1 件)
Peter Perkins
2017 年 7 月 19 日
You say, "with nanoseconds", but in fact what you show is not out to nanosecond precision, only to microsecond. Which is good, because double precision doesn't have enough bits to represent nanoseconds since 1970, and only just barely enough to represend microseconds since 1970.
>> t = 1500469584.003352 % 19-Jul-2017 13:06:24.003352, approximately
t =
1.500469584003352e+09
>> eps(t)
ans =
2.384185791015625e-07
So if you do have timestamps that go out to nanoseconds, and your differences are on the order of nanoseconds, you'll be plotting noise, not data.
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
