How can I calculate the mean and std with the retime function?

17 ビュー (過去 30 日間)
Enrique Escrig
Enrique Escrig 2020 年 4 月 4 日
My data is in a "timetable" format of one year of measurements and its frequency is 1 minute. I want to calculate the daily average for a year accompanied by the std. For this I use the function retime with the periodicity that I want and indicating that I want the average. In the help it says that you can add a function to calculate this std. Can you help me?
days_cloud_indices = retime(yaer_cloud_indices,"daily","mean")
Thanks in advance
  6 件のコメント
Peter Perkins
Peter Perkins 2020 年 4 月 27 日
Yes, what Walter says is mostl likely what's happening. retime allows you to say 'mean' instead of @mean, along with a few other canned aggregations, and those automatically do what Walter suggests, but std is not on that list.
Aries Dwi Siswanto
Aries Dwi Siswanto 2020 年 5 月 2 日
Hi Walter Roberson,
Thank you very much for your script and also the explanation related to the problem and how to solve.
I have tried and well work. Great.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by