title: Converting from Char to Struct : Error Matlab
body: <p>When ever I am running this code; I am getting the error on matlab.</p>
  
  <pre><code>A = dir('D:\Folder_One\Folder_Two\'); 
      len = length(A);
      disp(len)
    P = [];
    Q = [];
    R = [];
      for n = 1: len
          filename = [' D:\Folder_One\Folder_Two\’,  A(n, :)];                   
          mydata = dlmread(filename);                                         
          Pfeatures = features(mydata(:5));                               
          Qfeatures = features(mydata(:7));                             
          P = [P;Pfeatures];
          Q = [Q;Qfeatures];
      end
  </code></pre>
  
  <p>??? Error using ==> horzcat
  The following error occurred converting from char to struct:
  Error using ==> struct
  Conversion to struct from char is not possible.</p>