Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!b36g2000prf.googlegroups.com!not-for-mail
From: TideMan <mulgor@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Summarizing yearly/monthly data in time series
Date: Wed, 4 Nov 2009 10:56:05 -0800 (PST)
Organization: http://groups.google.com
Lines: 14
Message-ID: <2b1ccf73-822a-443a-9ddb-c5f7ed5b01df@b36g2000prf.googlegroups.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>
NNTP-Posting-Host: 202.78.152.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257360965 29859 127.0.0.1 (4 Nov 2009 18:56:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Nov 2009 18:56:05 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: b36g2000prf.googlegroups.com; posting-host=202.78.152.105; 
	posting-account=qPexFwkAAABOl8VUndE6Jm-9Z5z_fSpR
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bc2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) 
	Gecko/20091016 Firefox/3.5.4,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:582488


On Oct 29, 9:49 pm, "Oleg Komarov" <oleg.koma...@hotmail.it> wrote:
> > 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...
> :)

How about:
t=datenum(2009*ones(100,1),[1:100]',ones(100,1)) - 1;