This plot uses the function "filter" to compute a moving average of every seven points.
% Daily High Temperature in Anchorage
% time vector: time1155
% data vector: data1155
t = time1155;
d = data1155;
windowSize = 7;
df = filter(ones(1,windowSize)/windowSize,1,d);
plot(t,d,'cyan')
hold on
plot(t,df,'blue');
hold off
title('Max Temperature in Anchorage, Alaska')
xlabel('Date')
datetick
data points
Created 19 Oct 2011 by Ned Gulley
347 views (30 days)
This trend is associated in this plot (though may not be used.)
0 comments