% Peforms a sliding window
% Averaging 3 samples
function [out] = smooth(in);

a = [in in in];
out = zeros(1,100);

for ii = 100:199
    out(ii-99) = mean(a(ii-1:ii+1));
end

out