title: Error in Matlab: Subscripted assignment dimension mismatch
body: <p>I have this problem and can't figure out what the problem is.</p>
  
  <pre><code>for i=1:e
      s  = size(E_{i});
      r2 = s(1);
      E_{i}(1:r2,3) = (E_{i}(:,2))/(E_{i}(:,1));
  end
  </code></pre>
  
  <p>Subscripted assignment dimension mismatch.</p>