Thread Subject: area under a curve

Subject: area under a curve

From: stepbike41

Date: 25 Sep, 2009 08:03:22

Message: 1 of 4

Hi everybody,
I'm a new matlab user and I'm trying to acquire an external pressure signal that I have to integrate in order to obtain the area under the pressure curve.
Actually I can acquire the signal but I don't know how to obtain the area under the trace.
I also knew that the same think I'm trying to realize can be made using simulink but I don't know if there are any advantages?

Thank you very much!

Subject: area under a curve

From: tpl@eng.cam.ac.uk (Tim Love)

Date: 25 Sep, 2009 12:46:12

Message: 2 of 4

stepbike41 <stephan.caruso@unina.it> writes:

>Hi everybody,
>I'm a new matlab user and I'm trying to acquire an external pressure signal that I have to integrate in order to obtain the area under the pressure curve.
>Actually I can acquire the signal but I don't know how to obtain the area under the trace.
Try googling for
  matlab area under a curve

Subject: area under a curve

From: stepbike41

Date: 25 Sep, 2009 17:58:16

Message: 3 of 4

I found out that I can use the trapz function but I think that the integral of the curve is obtained with too much approximation....

Subject: area under a curve

From: dpb

Date: 25 Sep, 2009 18:22:06

Message: 4 of 4

stepbike41 wrote:
> I found out that I can use the trapz function but I think that the
> integral of the curve is obtained with too much approximation....

Well, you can sample faster to reduce the spacing or use other
integration techniques which in essence, do the interpolation behind the
scenes based on the particular choice.

You might look at

doc interp1

for a few alternatives; splines could be a reasonable choice perhaps...

--

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
area under a curve Sprinceana 26 Sep, 2009 04:58:16
area Sprinceana 26 Sep, 2009 04:58:16
curve Sprinceana 26 Sep, 2009 04:58:16
area of curve Sprinceana 26 Sep, 2009 04:58:16
rssFeed for this Thread

Contact us at files@mathworks.com