%% The function avarages 1-minute data to 5 minute
%
%%

function out5 = avr5min( in1 )

% ===================================================
% The function avarages 1-minute year array 
% to 5-minute year array
% INPUT
% in1 - 1 demention array  
% out5 - 5 minut avaraged array
% ===================================================

len = floor(length(in1)/5);
for i=0:len-1
  out5(1,i+1) = nanmean(in1(i*5+1:i*5+5));

end %for    