title: Error: Cell contents reference from a non-cell array object
body: <p>when I run the code below, I got the following error :</p>
  
  <pre><code>Cell contents reference from a non-cell array object.
  </code></pre>
  
  <p><code>folder</code> can take 1 or several folders </p>
  
  <pre><code>for x=1:numel(folder)
      y{x} = fullfile(folder{x},'Status.xml');
      getFile = fileread(char(y{x}));
      content{x} = strtok(getFile ,';');
  end
  
  
  &gt;&gt;whos folder
    Name        Size            Bytes  Class     Attributes
  
    folder      1x1               941  struct         
  
  
  &gt;&gt; numel(folder)
  ans= 
  1
  </code></pre>