Since it's your first time here, let us show you how Trendy works.

Close-button

High Temperature in Anchorage (7 Day Moving Average)

  • Created by: Ned Gulley
  • Latest result: Plot created
  • Created on: 23 Nov 2011

This plot uses the function "filter" to compute a moving average of every seven points.

Plot Image
% 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
Tags:

0 comments