Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Re: Numerical Integration Date: Sat, 8 May 2010 20:13:05 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 17 Message-ID: <hs4gkh$cbb$1@fred.mathworks.com> References: <hs46cc$ndc$1@fred.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: webapp-03-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1273349585 12651 172.30.248.38 (8 May 2010 20:13:05 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sat, 8 May 2010 20:13:05 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 1187260 Xref: news.mathworks.com comp.soft-sys.matlab:633811 "KAMAL ABAZA" <abaza_kamal@yahoo.com> wrote in message <hs46cc$ndc$1@fred.mathworks.com>... > Hello Guys, > I'm Having a problem at integration a function on matlab the function is as follow : > Integral = ∫[ϕ(ω) e^(-jωE) dω] " integration from -∞ to +∞ " > Where: ϕ(ω)=∏[(1-j2ωλ(i))]^(-1) "multiplication" > λ is vector of eigen values KNOWN (the whole vector is available) > E is also known > ω is a variable unknown and I want to integrate on . > hope that the equations are clear enough > how can integrate this function numerically ???? !!!! > thanks in Advance - - - - - - - - Use 'quadgk', which accepts infinite limits of integration. You will need to write a function for your integrand which accepts vector arguments, and it will need to accept the known parameters E and vector lambda. I assume that some of the eigenvalues in lambda are complex-valued in appropriate ways. Otherwise the function would not be integrable. Roger Stafford