Question in matlab

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!!

You landed in the PyTorch forum, so I would recommend to post this question in a MATLAB-specific discussion board. :wink:

1 Like

okay thanks ptrblck :blush: