Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Summarizing yearly/monthly data in time series
Date: Wed, 4 Nov 2009 15:11:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <hcs5i6$14i$1@fred.mathworks.com>
References: <hcaam2$8dv$1@fred.mathworks.com> <hcac7v$3d5$1@news.eternal-september.org> <c28afeaa-2a30-4cdd-bffc-07aceb07a1f4@h40g2000prf.googlegroups.com> <hcbktu$jjv$1@fred.mathworks.com> <hccj4e$j17$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1257347462 1170 172.30.248.37 (4 Nov 2009 15:11:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 15:11:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1886545
Xref: news.mathworks.com comp.soft-sys.matlab:582398


"Steven Lord" <slord@mathworks.com> wrote in message <hccj4e$j17$1@fred.mathworks.com>...
> 
> "Oleg Komarov" <oleg.komarov@hotmail.it> wrote in message 
> news:hcbktu$jjv$1@fred.mathworks.com...
> >> Now come on children, stop bickering!!
> >>
> >> It's quite easy really.
> >> To get the start times for the first of each month for the 100 months
> >> from 1-Jan-2009:
> >> t=datenum(2009*ones(100,1),[1:100]',ones(100,1));
> >
> > well show me how easy is to get the intervals on each end of the month ona 
> > period longer than 4 years...
> > :)
> 
> Take a look at this function:
> 
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/eomday.html
> 
> -- 
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ 
> 
Ok i new it.
adding the complexity that sometimes you might wanna go for the last working day of the month (which is in fact truly the reference for financial applications) and excluding the Financial TB you need to know the day of the week. 
This brings everything to my first approach, that is working on data ranges may be more bothersome than working with datevec, according to my experience/opinion