function kernelMdMREMMRECalculator2(mre3,mre3Kernel,mre5,mre5Kernel,mre7,mre7Kernel,mre9,mre9Kernel,mreBestK,mreBestKKernel)

MMRE = zeros(10,1);
MdMRE = zeros(10,1);


MMRE(1) = mean(mre3(1,:));
MdMRE(1) = median(mre3(1,:));
for i = 2:20
    if median(mre3(i,:)) > MdMRE(1)
        MMRE(1) = mean(mre3(i,:));
        MdMRE(1) = median(mre3(i,:));
    end
end

MMRE(2) = mean(mre5(1,:));
MdMRE(2) = median(mre5(1,:));
for i = 2:20
   if median(mre5(i,:)) > MdMRE(2)
        MMRE(2) = mean(mre5(i,:));
        MdMRE(2) = median(mre5(i,:));
    end
end



MMRE(3) = mean(mre7(1,:));
MdMRE(3) = median(mre7(1,:));
for i = 2:20
   if median(mre7(i,:)) > MdMRE(3)
        MMRE(3) = mean(mre7(i,:));
        MdMRE(3) = median(mre7(i,:));
    end
end


MMRE(4) = mean(mre9(1,:));
MdMRE(4) = median(mre9(1,:));
for i = 2:20
   if median(mre9(i,:)) > MdMRE(4)
        MMRE(4) = mean(mre9(i,:));
        MdMRE(4) = median(mre9(i,:));
    end
end


MMRE(5) = mean(mreBestK(1,:));
MdMRE(5) = median(mreBestK(1,:));
for i = 2:20
   if median(mreBestK(i,:)) > MdMRE(5)
        MMRE(5) = mean(mreBestK(i,:));
        MdMRE(5) = median(mreBestK(i,:));
    end 
end


MMRE(6) = mean(mre3Kernel(1,:));
MdMRE(6) = median(mre3Kernel(1,:));
for i = 2:20
    if median(mre3Kernel(i,:)) > MdMRE(6)
        MMRE(6) = mean(mre3Kernel(i,:));
        MdMRE(6) = median(mre3Kernel(i,:));
    end 
end


MMRE(7) = mean(mre5Kernel(1,:));
MdMRE(7) = median(mre5Kernel(1,:));
for i = 2:20
   if median(mre5Kernel(i,:)) > MdMRE(7)
        MMRE(7) = mean(mre5Kernel(i,:));
        MdMRE(7) = median(mre5Kernel(i,:));
    end 
end


MMRE(8) = mean(mre7Kernel(1,:));
MdMRE(8) = median(mre7Kernel(1,:));
for i = 2:20
   if median(mre7Kernel(i,:)) > MdMRE(8)
        MMRE(8) = mean(mre7Kernel(i,:));
        MdMRE(8) = median(mre7Kernel(i,:));
    end 
end


MMRE(9) = mean(mre9Kernel(1,:));
MdMRE(9) = median(mre9Kernel(1,:));
for i = 2:20
   if median(mre9Kernel(i,:)) > MdMRE(9)
        MMRE(9) = mean(mre9Kernel(i,:));
        MdMRE(9) = median(mre9Kernel(i,:));
    end 
end


MMRE(10) = mean(mreBestKKernel(1,:));
MdMRE(10) = median(mreBestKKernel(1,:));
for i = 2:20
   if median(mreBestKKernel(i,:)) > MdMRE(10)
        MMRE(10) = mean(mreBestKKernel(i,:));
        MdMRE(10) = median(mreBestKKernel(i,:));
    end 
end


    
MdMRE
% MMRE
end