for i=1:9776
pitch((i-1)*4+1:i*4)=nav_data(10,i);
roll((i-1)*4+1:i*4)=nav_data(11,i);
drift((i-1)*4+1:i*4)=nav_data(8,1);
track1((i-1)*4+1:i*4)=nav_data(12,1);
VGz((i-1)*4+1:i*4)=nav_data(7,1);
VGy((i-1)*4+1:i*4)=nav_data(5,1);
VGx((i-1)*4+1:i*4)=nav_data(6,1);
end
for i=1:76
pitch1(i)=mean(pitch((i-1)*512+1:i*512));
drift1(i)=mean(drift((i-1)*512+1:i*512));
roll(i)=mean(roll((i-1)*512+1:i*512));
track1(i)=mean(track1((i-1)*512+1:i*512));