title: Why does my array in MATLAB saturate at a value of 255?
body: <p>This is my code:   </p>
  
  <pre><code>arr = zeros(fx-10,1);
  frm = frams(x).cdata;
  for k=1:fx-10
      for i=1:10
          for j=1:fy
              arr(k) = arr(k)+ abs(frm(k+i-1,j)-model(i,j))
          end
      end
  end
  </code></pre>
  
  <p>Why the array receive only up to 255 value?</p>
  
  <p>I try to define:</p>
  
  <pre><code> arr = zeros(fx-10,1,'int64');
  </code></pre>
  
  <p>and the code failed:</p>
  
  <blockquote>
    <p>??? Undefined function or method
    'plus' for input arguments of type
    'int64'.</p>
  </blockquote>