title: Apply strsplit to Column of Strings (cellstr)
body: <p>Is it possible to have an Mx1 cell array containing strings in each cell, and split each such string according to the delimiter '/' (say) and have the result outputted to an MxN cell array, where N is the max of the occurrence of '/' over all the split strings?</p>
  
  <p>In my case, the number of occurrences of '/' is uniform (the possibility of non-uniformity is probably the issue in implementing such a function in general, though one could imagine storing NULL values).</p>
  
  <p>Obviously this could be implemented with a loop, calling splitstr M times, but I was hoping for the existence of a vectorized solution.</p>
  
  <hr>
  
  <p>To help clarify.  Suppose we have</p>
  
  <p>C{1,1} = "1string/2string/.../Nstring"</p>
  
  <p>C{2,1} = "1string/2string/.../Nstring"</p>
  
  <p>...</p>
  
  <p>C{M,1} = "1string/2string/.../Nstring"</p>
  
  <p>I want D to be</p>
  
  <p>D{1,1} = "1string" D{1,2} = "2string" ... D{1,N} = "Nstring"</p>
  
  <p>D{2,1} = "1string" D{2,2} = "2string" ... D{2,N} = "Nstring"</p>
  
  <p>...</p>
  
  <p>D{M,1} = "1string" D{M,2} = "2string" ... D{M,N} = "Nstring"</p>
  
  <p>or something roughly equivalent (for instance; the output doesn't need to be a MxN cell array; it could still be an Mx1 cell array, but with each cell being an 1xN (or Nx1) array with the cells being the split strings).</p>
  
  <hr>
  
  <p>Here is my current implementation (but with M and N instead of C and D; sorry for the confusion).</p>
  
  <pre><code>M = strtok(textscan(iID, formatSpec, 'Delimiter', ',', 'HeaderLines', 1){1,1}, '"');
  % note that strtok will return a cell array of size TOTAL_ROWS x 1
  N = cell(length(M), 3);
  for i = 1:length(M)
    N(i,:) = strsplit(M{i,1}, '/');
  endfor
  </code></pre>
  
  <p>Since the file is gigantic, I'd like to find a vectorized solution if there is one.</p>