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: Fri, 16 May 2008 11:04:02 +0000 (UTC)
Organization: University of Mysore
Lines: 28
Message-ID: <g0jpn2$p6n$1@fred.mathworks.com>
References: <g0hs2i$ntm$1@fred.mathworks.com> <g0hslb$4o$1@fred.mathworks.com> <g0htbq$bhf$1@fred.mathworks.com> <g0htnm$4s9$1@fred.mathworks.com>
Reply-To: "Archana Ananthanarayan" <archana1985_ms@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210935842 25815 172.30.248.35 (16 May 2008 11:04:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 11:04:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1359923
Xref: news.mathworks.com comp.soft-sys.matlab:468812


"Archana Ananthanarayan" <archana1985_ms@hotmail.com> wrote
in message <g0htnm$4s9$1@fred.mathworks.com>...
> "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
sufficie------------------------------------------------------------
> 
> thanks for all the replies! Its working!! Thanks a ton!
> 

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

The equation is not working when cPt assumes the values
150,250 etc.,

How to solve this?