function [ m ] = averagem( m )


    [row,col] = size(m);
    
    summ = mean(m);
    
    
       
    for c = 1:col
        
        
        for r = 1:row
             
           if m(r,c) == 0
              
                m(r,c) = summ(1,c);
               
           end
           
        end
        
    end





end

