title: Select all elements except one in a vector
body: <p>My question is very similar to <a href="https://stackoverflow.com/questions/13469718/extract-every-element-but-the-nth-element-of-vector">this one</a> but I can't manage exactly how to apply that answer to my problem.</p>
  
  <p>I am looping through a vector with a variable <code>k</code> and want to select the whole vector except the single value at index <code>k</code>.</p>
  
  <p>Any idea?</p>
  
  <pre><code>for k = 1:length(vector)
  
     newVector = vector( exluding index k);    &lt;---- what mask should I use? 
     % other operations to do with the newVector
  
  end
  </code></pre>