title: Undefined function or method 'split' for input arguments of type 'cell' in MATLAB
body: <p>I wrote a code in which i would like to split a number of rows along each column that it is represented in based on a delimiter. I wrote a for loop in which it does it for me. </p>
  
  <p><code>Pdbindex</code> is a cell array, where my values are stored that i am trying to split with a delimiter, a colon (:).</p>
  
  <p><img src="https://i.stack.imgur.com/LMjOg.jpg" alt="enter image description here"></p>
  
  <pre><code>for i = pdbindex(:,1)
  
      clean2_pdb = split(':', pdbindex);
  
  end
  </code></pre>
  
  <p>However, it threw me an error stating, <code>Undefined function or method 'split' for input arguments of type 'cell'.</code>.</p>
  
  <p>I don't know to solve this. </p>
  
  <p>Please advise.</p>
  
  <p><strong>Update:</strong> </p>
  
  <p>I have also posted another question of using <code>strsplit</code> function. A different problem pops up.</p>
  
  <p>Link : <a href="https://stackoverflow.com/questions/9366887/do-a-string-split-for-more-than-one-row-in-matlab">Strsplit function</a></p>