plot vector with string timestamp

1 次查看(过去 30 天)
Ancalagon8
Ancalagon8 2020-3-15
评论: Ancalagon8 2020-3-16
i want to plot some data with timestamp. Timestamp is string like this: 2019-07-01T18:55:02.197040 and my data are vector. Any help?
  2 个评论
Mohammad Sami
Mohammad Sami 2020-3-16
You can convert your timestamps to either datetime variable or to datenum. See documentation for how to set the format string.
Ancalagon8
Ancalagon8 2020-3-16
Thank you for your answer but i need to have them in a plot with exact format like 01/07/2019 18:55:00 etc and not numbers..any help?

请先登录,再进行评论。

回答(1 个)

Jakob B. Nielsen
Jakob B. Nielsen 2020-3-16
Take a look at the datetick function.

类别

Help CenterFile Exchange 中查找有关 Holidays / Seasons 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by