
%averages every p rows of x into 1
p=6;

y01 = avp(x1ac01,p);
y02 = avp(x1ac02,p); 
y03 = avp(x1ac03,p);
y04 = avp(x1ac04,p);
y05 = avp(x1ac05,p); 
y06 = avp(x1ac06,p);
y07 = avp(x1ac07,p);
y08 = avp(x1ac08,p); 
y09 = avp(x1ac09,p);
y10 = avp(x1ac10,p);
y11 = avp(x1ac11,p); 
y12 = avp(x1ac12,p); 
y13 = avp(x1ac13,p); 
y14 = avp(x1ac14,p); 
y15 = avp(x1ac15,p); 
y16 = avp(x1ac16,p); 
y17 = avp(x1ac17,p); 
y18 = avp(x1ac18,p); 
y19 = avp(x1ac19,p); 
y20 = avp(x1ac20,p); 
y21 = avp(x1ac21,p); 
y22 = avp(x1ac22,p); 