Hi,
i have monthly means of 47 years. i.e. for each year i have 12 separate means. i need to show how seasonal mean is changing over 47 years. then i need to show another change of one season say (May-June) for each year, to see the yearly seasonal variaton in this specific season?
here is my data file attached. Data is a timetable having univariate timeseries data. i am planning to reshape the data by keeping year on the rows, months on columns( as currently all the data with years and months are in one column), then i may plot a bar graph for the seasonal change.
but i am not finding a way to do it. the code for normal plot is as below.
let me add, data range is from Jan 1970 to May 2017.
please , guide me
looking forward…BR
figure; plot(monthlymeans_ObsData.timmendorf_time,monthlymeans_ObsData{:,1}', 'b' );hold on;% plot(monthlymeans_ObsData.timmendorf_time,monthlymeans_SimData{:,1}', 'g' ); hold on
title('Monthly Trend of Observed and Simulated Data Series');xlabel('Years: 1971-2017');ylabel('Monthly Mean');%% plot bars from monthly data on x-axis
% this will produce 12 x 46 matrix, considering 552 rows uptill year 2016
tt = reshape(monthlymeans_ObsData{1:552,1},12,[]); bar(tt(:,1:3),'DisplayName','tt(:,1:3)') % first 3 years display of monthly means
hold on % for month = 5 and 6
%bar(tt(4:5,:),'DisplayName','tt(4:5,:)')
Best Answer