<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262262</link>
    <title>MATLAB Central Newsreader - run code on multiple xls files</title>
    <description>Feed for thread: run code on multiple xls files</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 04 Oct 2009 13:27:01 -0400</pubDate>
      <title>run code on multiple xls files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262262#684524</link>
      <author>A Ram</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I currently developed a code that takes in only 1 .xls file and runs an analysis. I was wondering if there is a simple way to change the code to take each .xls file in the current dir at a time, run the current code, and save the outputs for each analysis of the respective .xls file.&lt;br&gt;
&lt;br&gt;
Thanks !</description>
    </item>
    <item>
      <pubDate>Sun, 04 Oct 2009 13:37:12 -0400</pubDate>
      <title>Re: run code on multiple xls files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262262#684527</link>
      <author>Rune Allnor</author>
      <description>On 4 Okt, 15:27, &quot;A Ram&quot; &amp;lt;shal....@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I currently developed a code that takes in only 1 .xls file and runs an analysis. I was wondering if there is a simple way to change the code to take each .xls file in the current dir at a time, run the current code, and save the outputs for each analysis of the respective .xls file.&lt;br&gt;
&lt;br&gt;
Yes:&lt;br&gt;
&lt;br&gt;
1) Refactor the present code such that it takes two arguments,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;the names of the input file and the output file&lt;br&gt;
2) Write a loop that calls the '1-file code' and calls it&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;with each of the input/output pairs of file names.&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Sun, 04 Oct 2009 13:41:48 -0400</pubDate>
      <title>Re: run code on multiple xls files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262262#684528</link>
      <author>Brian Borchers</author>
      <description>&amp;gt;&lt;br&gt;
&amp;gt; 1) Refactor the present code such that it takes two arguments,&lt;br&gt;
&amp;gt; &#160; &#160;the names of the input file and the output file&lt;br&gt;
&amp;gt; 2) Write a loop that calls the '1-file code' and calls it&lt;br&gt;
&amp;gt; &#160; &#160;with each of the input/output pairs of file names.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Rune&lt;br&gt;
&lt;br&gt;
The &quot;dir&quot; command would be useful in finding all of the .xls files in&lt;br&gt;
the current directory.</description>
    </item>
    <item>
      <pubDate>Sun, 04 Oct 2009 14:22:03 -0400</pubDate>
      <title>Re: run code on multiple xls files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262262#684537</link>
      <author>ImageAnalyst</author>
      <description>Section 4.12 of the FAQ may be useful here:&lt;br&gt;
&lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_process_a_sequence_of_files.3F&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_process_a_sequence_of_files.3F&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Alternate versions of xlswrite will speed things up:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/?term=xlswrite1&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/?term=xlswrite1&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

