From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to optimise numerical integration?
Date: Sat, 18 Sep 2010 22:06:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <i73d4b$sge$>
References: <i735gj$782$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1284847563 29198 (18 Sep 2010 22:06:03 GMT)
NNTP-Posting-Date: Sat, 18 Sep 2010 22:06:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:671158

  I should point out that with points as closely-spaced as you have here (0:0.001:5) you ought to obtain a very decent accuracy using cumtrapz rather than quad, and that should make it even faster.

Roger Stafford