The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: calculate the area of a curve
Replies: 9   Last Post: Mar 24, 2013 8:53 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 6,677
Registered: 2/7/05
Re: calculate the area of a curve
Posted: Mar 23, 2013 10:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3/23/2013 7:57 AM, angelina wrote:
> Hi!
> I am not sure if there is a way to calculate the area of a curve in matlab.

curve does not have an area. it is just a curved line. it has a length though
and it has curvature, but area?

>What I want to do , is first , define the curve (which is a load duration
>curve) and it is three piece linear.How can I define it?
> The coordinates are (0,100) , (2.8,75) and (100,25)
> Then , I want for the beginning to calculate the whole area af
>the curve and after that for many straight lines of the form y=a I want
>to calculate the area of the two areas that are created.
> Any comment or help woould be of great importance!
> Thanks a lot!

It sounds like you want to integrate a function and you have
only 3 points for it? May be you can look at trapz.

"Z = trapz(Y) computes an approximation of the integral of Y via the trapezoidal method"

good luck,


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.