Area under a curve from a set of data points

1 visualización (últimos 30 días)
richard
richard el 15 de Abr. de 2013
Hello
I have a 'n x 8' matrix with with each column representing the radioactivity in a certain organ and the rows correspond to activity at a certain time (1-10 days)
so it goes like this
A = [1 2 3 4 5 6 7 8;........;........;
where the values represent the radioactivity in eight different organs. And there are a bunch of rows corresponding to the time elapsed and the activity at those times. Make sense??
I plotted this out and my next task is to find the area under each of the data points so I want 8 different values for the integral under each of the 8 organ curves. Any idea on how to do this?
I am looking at the help site, and all they give for examples are actual functions (ex. sin(x^2), e^(-x^2) etc.) In my case I only have sets of data points with no actual function fitted to them. Any help will be appreciated

Respuesta aceptada

Matt J
Matt J el 15 de Abr. de 2013
Use TRAPZ

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by