for i=1:1118
J(i) = mean(D(i,1,:));
end