<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262241</link>
    <title>MATLAB Central Newsreader - if more than a file in dir execute code</title>
    <description>Feed for thread: if more than a file in dir execute code</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 05:13:01 -0400</pubDate>
      <title>if more than a file in dir execute code</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262241#684462</link>
      <author>A Ram</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
How can I code the following in matlab?&lt;br&gt;
&lt;br&gt;
If there is more than 1 xls file in the current directory then execute a given comman.&lt;br&gt;
&lt;br&gt;
Thanks !</description>
    </item>
    <item>
      <pubDate>Tue, 06 Oct 2009 13:33:14 -0400</pubDate>
      <title>Re: if more than a file in dir execute code</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262241#685038</link>
      <author>Ashish Uthama</author>
      <description>On Sun, 04 Oct 2009 01:13:01 -0400, A Ram &amp;lt;shal.hat@gmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How can I code the following in matlab?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If there is more than 1 xls file in the current directory then execute a  &lt;br&gt;
&amp;gt; given comman.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks !&lt;br&gt;
&lt;br&gt;
Inspect the value of dir('*.xls') (help dir).&lt;br&gt;
Use SIZE/LENGTH to obtain the number of XLS files in the directory.</description>
    </item>
  </channel>
</rss>

