필터 지우기
필터 지우기

Display only timeseries years

조회 수: 2 (최근 30일)
Sarah Yun
Sarah Yun 2019년 12월 15일
편집: Adam Danz 2019년 12월 15일
Hi,
I have time-series data from 1958 to 2019.
The smallest unit of time is 1 hour (from 2014 to 2019)
The smallest unit of time is 3 hours (from 1958 to 2013)
The y-variable is temperature
The data looks like this
What code should I use to display the temperature data in yearly intervals on a figure?
(I assume I must take the average temperatures across the years) - how?
Thank you.

채택된 답변

Adam Danz
Adam Danz 2019년 12월 15일
편집: Adam Danz 2019년 12월 15일
Based on the image you shared, your data are arranged in a table, not a timetable. Using a timetable will be useful so you can easily convert your data to a timetable using
Then you could compute the annual means by following this exmple in retime() except you'll use yearly time steps instead of hourly.
If you have any problems implementing this, show us your code and we can help straighten it out.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by