function y=tenminmean(x,freq,t)
chk=t*60*freq;   %60s * time * frequency
result=[];
for ii=0:(length(x)/chk)-1
    tenminmean=mean(x(ii*chk+1:chk*(ii+1)));
    result=[result; tenminmean];
end
y=result; 