title: Delete elements within cells of array MATLAB
body: <p>This post pertains to the "remove elements" operation which utilizes empty brackets, [].</p>
  
  <p>I'm trying to use [] to delete specific elements within a cell. A previous post mentioned that using () rather than {} with [] for an array is the appropriate syntax to delete elements rather than the entire cell. However, this syntax doesn't seem to work (Error: ()-indexing must appear last in an index expression).  My original code is as follows, which utilizes {} rather than () to delete the elements contained in each cell of newinter from the corresponding cell of inter2.</p>
  
  <pre><code>for i=1:11
      inter2{i}(newinter{i}) = [];
  end
  </code></pre>
  
  <p>inter2 is a 1X11 array. newinter is also a 1x11 array. I used arrays versus matrices because the length of each vector contained within the cells of these arrays is different.</p>
  
  <p>Thanks in advance!</p>