Path: news.mathworks.com!not-for-mail
From: "joseph Frank" <josephfrank1969@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: selecting the first 3 working days of a month
Date: Tue, 24 Nov 2009 10:07:04 +0000 (UTC)
Organization: American University of Beirut
Lines: 12
Message-ID: <hegb88$s9$1@fred.mathworks.com>
Reply-To: "joseph Frank" <josephfrank1969@hotmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1259057224 905 172.30.248.37 (24 Nov 2009 10:07:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 24 Nov 2009 10:07:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1223388
Xref: news.mathworks.com comp.soft-sys.matlab:587418


I have a vector of dates "Dates"
I want to find the first 3 working days of January of each year. I wrote the following codes:

[yy,mm,dd]=datevec(Dates);

uyy=unique(yy);

for i=1:length(uyy)

Indx=find(ismember(yy,uyy(i) && mm==1 && "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?

end