필터 지우기
필터 지우기

How to loop time ( hours and minutes ) in a data set

조회 수: 3 (최근 30일)
desert_scientist90
desert_scientist90 2020년 8월 10일
댓글: Star Strider 2020년 8월 10일
Hi all,
I am working with a 264,xxx *12 dataset, I imported them to matlab as column vectors due to the nature of the sampling the intervals range from 5 to 30 seconds in a 4 hour span for example 6 to 10 pm. I want to achive two things A) be able to average the observations to the minute, b) be able to do a time series graph between y1...y4 vs x(time). My question is where I can find information to do this on matlab?
Thanks in advance

답변 (1개)

Star Strider
Star Strider 2020년 8월 10일
The retime function (and the timetable creation that is necessary to use it) is likely the best option.
  댓글 수: 4
desert_scientist90
desert_scientist90 2020년 8월 10일
Quick question, do I have to get rid of the nans? I ask becuse each interval I have a nan, the resulting table from retime is just nan's all over the place
Star Strider
Star Strider 2020년 8월 10일
The fillmissing function may do what you want. Also note that the retime method argument has the ability to fill missing data. I have no idea what your data are, so I can’t make specific recommendations beyond these.

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

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by