datetime data type and time series object
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christopher Hoen
am 11 Dez. 2015
Kommentiert: Peter Perkins
am 26 Feb. 2018
The time series object seems not to accept the datetime data type for the time vector. This is very inconvenient as the datetime data type is the far best way of representing time in Matlab. Will support for datetime values in the time vector be implemented in the future?
0 Kommentare
Akzeptierte Antwort
Peter Perkins
am 11 Dez. 2015
Christopher, it's nice to hear that you've used datetime and think it's worthwhile. Integrating datetime into more places in MATLAB, including ways to use it for time series data, is something we're actively exploring.
2 Kommentare
William Chamberlain
am 26 Feb. 2018
Any news on this? Especially - how can I convert a time from a timeseries to a datetime?
Peter Perkins
am 26 Feb. 2018
William, you might mean, "how do I convert the time vector in a timeseries object to a datetime?", and that is not possible. But beginning in R2016b, you can use a timetable for many of the things you'd use a timeseries for. It's pretty straight-forward to convert from timeseries to timetable, although depending on the time vector in the former you might need to use functions such as days.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!