Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem with a variable not changing value in Matlab
Date: Sat, 4 Jun 2011 23:27:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <isef06$h0g$1@newscl01ah.mathworks.com>
References: <ise0mm$e2d$1@newscl01ah.mathworks.com> <ise3o9$kvd$1@newscl01ah.mathworks.com> <ise4ks$mso$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307230022 17424 172.30.248.38 (4 Jun 2011 23:27:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Jun 2011 23:27:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:730251

"nisse" wrote in message <ise4ks$mso$1@newscl01ah.mathworks.com>...
> Thanks so much!!
> Since you know the math, do you know why the truncation can be found with I - log(2)? 
- - - - - - - - -
  I recognize your 'trapets" as computing Simpson's integration approximation, but I have no idea why you subtract log(2) from it.  Perhaps you could tell us why you do.

Roger Stafford