I tested this code
g = [ 0.0113  0.0838 0.0113 ; 0.0838  0.6196 0.0838 ; 0.0113  0.0838 0.0113]
     

 
 for i = 1: 400    
   for j=1 : 400
           
       B(i,j) = (abs((((log(b.B1(i,j)))) -((log(a.B2(i,j)))))*g))
          
      end
  end

error
Subscripted assignment dimension mismatch.

help me plz!!