Calculate the mean of the values in each time serie
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, i have a data of time series. I want to get these data on regular time intervals (each 15 min). How I can achieve this task under matlab?
댓글 수: 0
채택된 답변
Walter Roberson
2017년 4월 22일
If you have a new enough version of MATLAB, you can use a timetable() and use retime()
댓글 수: 4
Walter Roberson
2017년 4월 22일
Your image appears to be using timetable objects; your original question asked about time series. If you do have timeseries objects, you can use the resample() method.
추가 답변 (1개)
Image Analyst
2017년 4월 22일
Use interp1() to resample the data at the desired interval.
댓글 수: 3
Image Analyst
2017년 4월 22일
OK. But It's hard for anyone to give you specific recommendations or code when you don't even show us what form your data is in. So why don't you just resample all your vectors so that they cover the same time intervals, add them up, and divide by the number of vectors. Will that not work?
참고 항목
카테고리
Help Center 및 File Exchange에서 Preprocessing Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!