Is there a way to calculate the mean of multiple data points at one time stamp of a time series?

조회 수: 3 (최근 30일)
I have a data set where for a number of time stamps, multiple data points are measured. Is there a way to calculate the mean of a time series at every timestamp? In the series, the first column are the timestamps and the second column are the measurements.
  댓글 수: 2
Jan
Jan 2018년 4월 26일
Please post some example data, which clarify, which class the "data set" has and how the "time stamps" are stored. I assume accumarray solves the problem directly.

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

채택된 답변

Peter Perkins
Peter Perkins 2018년 4월 26일
Depending on what you have, it can be as easy as
retime(tt,tt.Time,'mean');
where tt is a timetable.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by