Since you are new, 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,'.','Color',0.7*[1 1 1],'MarkerSize',12)
hold on
plot(t,df);
hold off

title('Max Temperature in Anchorage, Alaska')
xlabel('Date')
datetick
Tags:

Add Tags


0 comments