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$>
References: <ise0mm$e2d$> <ise3o9$kvd$> <ise4ks$mso$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1307230022 17424 (4 Jun 2011 23:27:02 GMT)
NNTP-Posting-Date: Sat, 4 Jun 2011 23:27:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:730251

"nisse" wrote in message <ise4ks$mso$>...
> 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