필터 지우기
필터 지우기

Work with dates in tables

조회 수: 1 (최근 30일)
Patricia Alejandra Palacios Romero
I am working with a database of measurements each 10 minutes, something like the attached picture. I need to get the values for hourly timesteps, so I would need to have just a value for the timestep 12:00 that would be the mean value of the timesteps 12:10 , 12:20 , 12:30 , 12:40 , 12:50. Is there an easy way to do so? Thanks for any help.
  댓글 수: 1
Paolo
Paolo 2018년 6월 19일
So you want to compute the mean for data where hours (e.g. 12:00) is the same? Can you attach a sample file?

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

채택된 답변

Walter Roberson
Walter Roberson 2018년 6월 19일
If you have a new enough MATLAB, table2timetable() and then use retime()
  댓글 수: 1
Patricia Alejandra Palacios Romero
That worked perfectly! Thanks!

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by