title: xlswrite overwrite existing file
body: <p>I have 53 xls table (ch_1, ch_2, ...) and then use them as a input for Neural Network. After that write the NN result in a new xls and csv.</p>
  
  <pre><code>clc
  clear all
  files=dir('*.xls');
  for i=1:length(files(:,1))
      aa=xlsread(files(i).name);
      fprintf('step: %d\n', i);
  datanameXls = ['channel_' num2str(i) '.xls'];
  datanameCsv = ['channel_' num2str(i) '.csv'];
  
  a17=aa(:,1);
  b17=aa(:,4);
  p=size(a17);
  c17=zeros(144,31);
  
  
  % Create a Fitting Network
  hiddenLayerSize = 10;
  net = fitnet(hiddenLayerSize);
  
  
  % Setup Division of Data for Training, Validation, Testing
  net.divideParam.trainRatio = 70/100;
  net.divideParam.valRatio = 15/100;
  net.divideParam.testRatio = 15/100;
  
  
  % Train the Network
  [net,tr] = train(net,inputs,targets);
  % Test the Network
  outputs = net(inputs);
  A= zeros(4464, 2);
  A = [o, outputs'];
  A(A&lt;0)=0;
  csvwrite(datanameCsv, A);
  fprintf('csv is written \n');
  xlswrite(datanameXls, A);
  fprintf('xls is written \n');
  end
  </code></pre>
  
  <p>The problem is: when i try this programm with one, two till 9 table, the Result which i save through xlswrite are true, but when i try it with 52 table, i get a false table because for example ch_1 is overwritten whith ch_10.<br>
  Any IDEA???</p>