Combined mean monthly values from 24 years of monthly data

1 回表示 (過去 30 日間)
Elizabeth Lees
Elizabeth Lees 2021 年 4 月 17 日
回答済み: Bjorn Gustavsson 2021 年 4 月 17 日
I currently have a table with monthly discharge values for 24 years across 11 varibles which I would like to convert to mean values for each Month - i.e. 1 mean value for each month (January, Febuary etc) for each variable. How would I go about doing this?
I will attach the data file if that is of any help. The end goal here is to plot regime graphs for each variable.

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 4 月 17 日
Something like this perhaps:
BV = table2array(baseline_values);
clf
subplot(2,1,1)
imagesc(reshape(BV(:,4),12,[])') % Illustrating with a random variable
subplot(2,1,2)
plot((reshape(BV(:,4),12,[])')')
hold on
plot(mean(reshape(BV(:,4),12,[])'),'k','linewidth',3)
Montly_avg(:,4) = mean(reshape(BV(:,4),12,[])');
HTH

カテゴリ

Help Center および File ExchangeTime Series Events についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by