N = load('all_times.txt')
M = N
[m,n]=size(M)
if isvector(M)
    Average=M
    StandardError=zeros(1,n)
else
    Average=mean(M)
    StandardError=std(M)/sqrt(m)
end

OutputMatrix=zeros(3,n)
OutputMatrix(1,:)=[2 4 6 8 10 12 14 16 18 20 30 40 50 60 70 80]
OutputMatrix(2,:)=Average
OutputMatrix(3,:)=StandardError

OutputMatrix1=OutputMatrix'

dlmwrite('averagedTime.gp',OutputMatrix1,'delimiter','\t','precision','%.6f')
