필터 지우기
필터 지우기

datetime data type and time series object

조회 수: 1 (최근 30일)
Christopher Hoen
Christopher Hoen 2015년 12월 11일
댓글: Peter Perkins 2018년 2월 26일
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?

채택된 답변

Peter Perkins
Peter Perkins 2015년 12월 11일
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
William Chamberlain
William Chamberlain 2018년 2월 26일
Any news on this? Especially - how can I convert a time from a timeseries to a datetime?
Peter Perkins
Peter Perkins 2018년 2월 26일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series Events에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by