Calculating variance in loop

Hi, I have 8 years of data and I want to calculate the variance of the same month but different year all together. i.e. Variance of January for all the 8 years. My matrix is 74*115*22168. I know there is the function var, but I'm finding problems to incorporate everything in a loop that does everything in one run. Any help pls

3 件のコメント

dpb
dpb 2016 年 8 月 28 日
How do you have the dates available?
Walter Roberson
Walter Roberson 2016 年 8 月 28 日
How does the 74*115*22168 matrix correspond to date? None of those values appear to divide nicely by 8 or "nearly" 365, so you do not appear to have data divided by day or by hour (or, say, 3 hours). Perhaps it is financial data only for business days: if so then to group it properly would require the date/time information.
Image Analyst
Image Analyst 2016 年 8 月 28 日
What does each row, column, and z-level of your 3-D matrix represent? Which index is time and what units is it? Can you get it into a shape where you have 12 so that each row or plane corresponds to a month?

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

MF
2016 年 8 月 28 日

コメント済み:

2016 年 8 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by