title: How to export data from Matlab to excel for a loop?
body: <p>I have a code for "for loop"</p>
  
  <blockquote>
    <blockquote>
      <p>for i=1:4
         statement...
         y=sim(net, I);
      end</p>
    </blockquote>
  </blockquote>
  
  <p>now i need to export the value of y to excel sheet. for that i used..</p>
  
  <blockquote>
    <blockquote>
      <p>xlswrite('output_data.xls', y, 'output_data', 'A1')</p>
    </blockquote>
  </blockquote>
  
  <p>but my problem is that the ID of excel i.e. "A1" should change according to each iteration... in my case for iteration 1-> A1, iteration-> A2 and so on.. </p>
  
  <p>anybody please help me out ..
  thanks in advance. for any assistance.. or suggestion..</p>