title: Octave - remove occurrences of an element in a cell array
body: <p>In Octave, I have this cell array:
  <code>y = { 'hello' 'world' 'a' 'world' 'g' 'I' 'w' 'hi'};</code></p>
  
  <p>I need to be able to remove the duplicates of an element. So for example I want to remove the duplicates of <code>'world'</code>, this should be the output:</p>
  
  <pre><code>ans =
  {
    [1,1] = hello
    [1,2] = a
    [1,3] = g
    [1,4] = I
    [1,5] = w
    [1,6] = hi
  }
  </code></pre>
  
  <p>Aside from the usual loop until n times, is there a function in Octave that does this?</p>
  
  <p>I've been looking for ways to do this but found nothing. From what I've seen, <code>unique</code> does not do this as it removes all duplicates.</p>