title: Dimensions of matrices being concatenated are not consistent
body: <p>i read a csv file with textscan and when i want write in a file i receive this error : Error using horzcat. Dimensions of matrices being concatenated are not consistent.</p>
  
  <p>if i change the first format in textscan (i mean %S) to %f the error vanishes.
   the error occurs when matlab want to make [datatest{1} probability]</p>
  
  <p>probability is 1000*1 double
  datatest{1} is 1000*1 cell</p>
  
  <pre><code>datatest=textscan(FileID,'%s %*f %f %f %*s %*s %*s %*s %*s %*s %*s %*s %*s %f %f %f %f %f %f %f %f %f %f',1000,'headerlines',1,'delimiter',',');
  
  csvwrite('output.csv',[datatest{1} probability]);
  </code></pre>