Thread Subject: how to integrate a oscillating function with matlab numetically?

Subject: how to integrate a oscillating function with matlab numetically?

From: wang wang

Date: 5 Jun, 2008 07:48:02

Message: 1 of 3

Hi~everyone, I have a oscillating function, but I don't
know how to integrate it with matlab, the results given by
the matlab function quad and quad8 are not ideal. Is there
a special function in matlab to do this kind of
integration .

Subject: how to integrate a oscillating function with matlab numetically?

From: John D'Errico

Date: 5 Jun, 2008 09:12:03

Message: 2 of 3

"wang wang" <pligly@gmail.com> wrote in message
<g285ni$27j$1@fred.mathworks.com>...
> Hi~everyone, I have a oscillating function, but I don't
> know how to integrate it with matlab, the results given by
> the matlab function quad and quad8 are not ideal. Is there
> a special function in matlab to do this kind of
> integration .

No. Sorry.

A completely general oscillating function may
be difficult to integrate, depending on the
size of the range and the number of periods
contained within it. Of course, the last time
someone asked this question, they were trying
to integrate over the infinite real line. I hope
that you are not also trying to use an adaptive
numerical tool to integrate over an infinite
domain.

John

Subject: how to integrate a oscillating function with matlab numetically?

From: wang wang

Date: 5 Jun, 2008 13:35:03

Message: 3 of 3

"John D'Errico" <woodchips@rochester.rr.com> wrote in
message <g28al3$5dh$1@fred.mathworks.com>...
> "wang wang" <pligly@gmail.com> wrote in message
> <g285ni$27j$1@fred.mathworks.com>...
> > Hi~everyone, I have a oscillating function, but I
don't
> > know how to integrate it with matlab, the results
given by
> > the matlab function quad and quad8 are not ideal. Is
there
> > a special function in matlab to do this kind of
> > integration .
>
> No. Sorry.
>
> A completely general oscillating function may
> be difficult to integrate, depending on the
> size of the range and the number of periods
> contained within it. Of course, the last time
> someone asked this question, they were trying
> to integrate over the infinite real line. I hope
> that you are not also trying to use an adaptive
> numerical tool to integrate over an infinite
> domain.
>
> John

John, Thank you for reply!
Actually, it's true, i am trying to integrate an
oscillating function over an infinite interval. What i
have known is that this function is integrable.Is it
possible to use quadl to do this work? thanks!

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
oscillating fun... wang wang 5 Jun, 2008 03:50:06
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com