From: roshni jyothiss on
instead of fitting the points and integrating to get the area, anybody knows other methods to calculate the area.

for ex: i have x = [0, 0.005, 0.01,..................1]
y = [1, 0.8, 0.6, 0.4,..........0]


thanks in advance

sasha
From: us on
"roshni jyothiss" <roshni_balan(a)hotmail.com> wrote in message <hkc7re$3u6$1(a)fred.mathworks.com>...
> instead of fitting the points and integrating to get the area, anybody knows other methods to calculate the area.
>
> for ex: i have x = [0, 0.005, 0.01,..................1]
> y = [1, 0.8, 0.6, 0.4,..........0]
>
>
> thanks in advance
>
> sasha

a hint:

help polyarea;

us
From: aasim Azooz on
"roshni jyothiss" <roshni_balan(a)hotmail.com> wrote in message <hkc7re$3u6$1(a)fred.mathworks.com>...
> instead of fitting the points and integrating to get the area, anybody knows other methods to calculate the area.
>
> for ex: i have x = [0, 0.005, 0.01,..................1]
> y = [1, 0.8, 0.6, 0.4,..........0]
>
>
> thanks in advance
>
> sasha

Try
Area=trapz(x,y)
Aasim Azooz