Path: news.mathworks.com!not-for-mail
From: "Archana Ananthanarayan" <archana1985_ms@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Jumping to the next interval
Date: Thu, 15 May 2008 18:00:22 +0000 (UTC)
Organization: University of Mysore
Lines: 20
Message-ID: <g0htnm$4s9$1@fred.mathworks.com>
References: <g0hs2i$ntm$1@fred.mathworks.com> <g0hslb$4o$1@fred.mathworks.com> <g0htbq$bhf$1@fred.mathworks.com>
Reply-To: "Archana Ananthanarayan" <archana1985_ms@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 1210874422 5001 172.30.248.37 (15 May 2008 18:00:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 May 2008 18:00:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1359923
Xref: news.mathworks.com comp.soft-sys.matlab:468667


"helper " <spamless@nospam.com> wrote in message
<g0htbq$bhf$1@fred.mathworks.com>...
> > firstNext = ceil((cPt-1)/200)*200 + 1
> > 
> > Note that I had to use (cPt-1) to handle the case where 
> > cPt=200.
> 
> 
> Ooops.  Looking at this again, I was wrong.  No need to use 
> cPt-1
> 
> firstNext = ceil(cPt/200)*200 + 1
> 
> is sufficient.


------------------------------------------------------------

thanks for all the replies! Its working!! Thanks a ton!