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: Sun, 5 Jun 2011 10:27:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <isfllo$fbq$1@newscl01ah.mathworks.com>
References: <ise0mm$e2d$1@newscl01ah.mathworks.com> <ise3o9$kvd$1@newscl01ah.mathworks.com> <ise4ks$mso$1@newscl01ah.mathworks.com> <isef06$h0g$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307269624 15738 172.30.248.48 (5 Jun 2011 10:27:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 5 Jun 2011 10:27:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2902978
Xref: news.mathworks.com comp.soft-sys.matlab:730270

"Roger Stafford" wrote in message <isef06$h0g$1@newscl01ah.mathworks.com>...
> "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


Actually, I'm calculating the truncation with the subtraction of log(2), or anyway that's the tip I got from some of my classmates. I don't know why really, but it will probably work out anyway. Thanks for the help!