How can I calculate the mean and std with the retime function?
17 ビュー (過去 30 日間)
古いコメントを表示
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
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
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 Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!