%
function yhat = Moving_Average_Filter( y, n )
%
yhat = y(1:n);
for i = n:length(y),
   yhat(i) = sum( y((i-n+1):i) ) / n;
end;
%
