title: strsplit: undefined function for input type 'char'
body: <p>I have a &lt;20x1> cell array and each of them stores some data in the form of a string (as it appears to me!!!). I want to access each element of the cell as an individual string and split is in words.</p>
  
  <p>The cell array I have is &lt;20x1> cell array and to access each element as a cell I am using a for loop.</p>
  
  <pre><code>for i=1:20
      line=newline{i}
  end
  </code></pre>
  
  <p>It shows me a all the elements within the array. Now since line is a string, I apply strsplit function to retrieve the words in the string.</p>
  
  <pre><code>for i=1:20
     words(i,:)=strsplit(line)
  end
  </code></pre>
  
  <p>This gives me an error message : </p>
  
  <pre><code>??? Undefined function or method 'strsplit' for input
  arguments of type 'char'.
  
  Error in ==&gt; chk at 15
  words=strsplit(newline{i})
  </code></pre>
  
  <p>can anyone explain me where I am wrong? Any help will be appreciated. Thanks in advance.</p>