title: Adding elements to Vector?
body: <p>I am converting a function in MatLab to C++ and come across this (in matlab):</p>
  
  <pre><code>  f = blocks(min:max,1:len);
  </code></pre>
  
  <p>with values: <strong>min = 153, max = 205</strong></p>
  
  <p>It is a 2D vector. So does the line of code above create a new 2D vector and copy the all of the blocks inside "blocks" to the new vector?</p>
  
  <p>So in essence, it's essentially a loop that starts at 153 ending at 250 and copies each of the blocks to the new vector?</p>
  
  <p>Hope someone can help! </p>