title: Matlab strcat does not return a string?
body: <p>imgstr can't recognize the output string from strcat.</p>
  
  <pre><code>homedir = 'C:\Users\...\images\';
  for img = {'01.bmp', '02.bmp', '03.bmp'}
    imgstr = strcat(homedir, img)
    I = imread(imgstr);
  end;
  </code></pre>
  
  <p>outputs:</p>
  
  <pre><code>imgstr = 'C:\Users...\images\01.bmp'
  Error using imread&gt;parse_inputs (line 477)
  The filename or url argument must be a string.
  </code></pre>
  
  <p>strcat should be returning a string, not a char array, since my inputs are strings. Shouldn't it?</p>