title: Error -> Colon operands must be in the range of the data type. No sense
body: <p>In the code below image index range only accept to deal with <code>int16</code> however I can't find a proper explanation for this case. In the same code, you can notice if I change the data type to <code>int8</code> for same value error will present.</p>
  
  <pre><code>K&gt;&gt; t2 = int8(t)
  
  t2 =
  
    int8
  
     45
  
  K&gt;&gt; I2 = flt_rot(t:end,:);
  K&gt;&gt; I2 = flt_rot(t2:end,:);
  Error using  : 
  Colon operands must be in the range of the data type.
  </code></pre>
  
  <p>Why did this happen?</p>