<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266678</link>
    <title>MATLAB Central Newsreader - selecting the first 3 working days of a month</title>
    <description>Feed for thread: selecting the first 3 working days of a month</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>Tue, 24 Nov 2009 10:07:04 -0500</pubDate>
      <title>selecting the first 3 working days of a month</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266678#697056</link>
      <author>Joseph Frank</author>
      <description>I have a vector of dates &quot;Dates&quot;&lt;br&gt;
I want to find the first 3 working days of January of each year. I wrote the following codes:&lt;br&gt;
&lt;br&gt;
[yy,mm,dd]=datevec(Dates);&lt;br&gt;
&lt;br&gt;
uyy=unique(yy);&lt;br&gt;
&lt;br&gt;
for i=1:length(uyy)&lt;br&gt;
&lt;br&gt;
Indx=find(ismember(yy,uyy(i) &amp;&amp; mm==1 &amp;&amp; &quot;here I want to find the first 3 working days of the month) is there any function that gives me the first 3 working days?&lt;br&gt;
&lt;br&gt;
end</description>
    </item>
    <item>
      <pubDate>Tue, 24 Nov 2009 12:13:03 -0500</pubDate>
      <title>Re: selecting the first 3 working days of a month</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266678#697087</link>
      <author>Branko </author>
      <description>&quot;joseph Frank&quot; &amp;lt;josephfrank1969@hotmail.com&amp;gt; wrote in message &amp;lt;hegb88$s9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a vector of dates &quot;Dates&quot;&lt;br&gt;
&amp;gt; I want to find the first 3 working days of January of each year. I wrote the following codes:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [yy,mm,dd]=datevec(Dates);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; uyy=unique(yy);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for i=1:length(uyy)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Indx=find(ismember(yy,uyy(i) &amp;&amp; mm==1 &amp;&amp; &quot;here I want to find the first 3 working days of the month) is there any function that gives me the first 3 working days?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; end&lt;br&gt;
&lt;br&gt;
Look:&lt;br&gt;
&lt;br&gt;
doc weekday&lt;br&gt;
&lt;br&gt;
Branko</description>
    </item>
  </channel>
</rss>

