Clear Filters
Clear Filters

plot vector with string timestamp

4 views (last 30 days)
Ancalagon8 on 15 Mar 2020
Commented: Ancalagon8 on 16 Mar 2020
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?
Mohammad Sami
Mohammad Sami on 16 Mar 2020
You can convert your timestamps to either datetime variable or to datenum. See documentation for how to set the format string.
Ancalagon8 on 16 Mar 2020
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?

Sign in to comment.

Answers (1)

Jakob B. Nielsen
Jakob B. Nielsen on 16 Mar 2020
Take a look at the datetick function.


Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!