subplot timeseries for mean monthly temperature, max monthly temperature and minimum monthly temperature

2 次查看(过去 30 天)
此 个问题 已被 Star Strider 标记
Can someone help me for subplot timeseries for mean monthly temperature, max monthly temperature and minimum monthly temperature

回答(1 个)

David Hill
David Hill 2022-11-22
With matrix rows: year, month, min, mean, max
f=find(diff(data(3,:))<0);
f=[0,f,size(data,2)+1];
monthlyData=zeros(5,length(f)-2);
for k=1:length(f)-2
m=data(4,f(k)+1:f(k+1));
monthlyData(k,:)=[data(1:2,f(k+1));min(m);mean(m);max(m)];
end

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by