Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Quadrature method using vectors
Date: Thu, 28 Apr 2011 19:37:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <ipcfl1$90k$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1304019425 9236 172.30.248.47 (28 Apr 2011 19:37:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 28 Apr 2011 19:37:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 592031
Xref: news.mathworks.com comp.soft-sys.matlab:724329

I was wondering if anyone knew of a method in MATLAB to numerically integrate a function using a quadrature method with a vector rather than a function as the input (step size/location defined by a second vector). The system of integrals I am attempting to integrate are coupled such that an explicit function cannot be passed to a quad(fun,a,b) type MATLAB function. I'd be happy to post the systems of integrals if you're interested.

Writing the code for a vector based quadrature method shouldn't be too bad but it would be nice to save the time if I didn't have to do it.

Any ideas?