Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Area under the curve

0 views
Skip to first unread message

Dhina Siva siddarthan

unread,
Dec 31, 2009, 4:29:03 AM12/31/09
to
Hi,

I have two sets of data t and y. I want to find the cumulative y (area under the curve) after each point of t and want to plot t with cumulative y.
I tried trapz function. But trapz function gives the area at the last point of t, not at each point of t. Could you please help me to solve this problem?

Kind regards,

Dhina...

us

unread,
Dec 31, 2009, 4:37:03 AM12/31/09
to
"Dhina Siva siddarthan" <sdhin...@rediffmail.com> wrote in message <hhhqsv$53p$1...@fred.mathworks.com>...

a hint:

help cumtrapz;

us

Dhina Siva siddarthan

unread,
Dec 31, 2009, 1:31:05 PM12/31/09
to
"us " <u...@neurol.unizh.ch> wrote in message <hhhrbv$8ke$1...@fred.mathworks.com>...

Thanks a lot, us!

0 new messages