Integrate Set of data from excel

Hi there,
I have a set of Data in excel: Column A and Column B.
First i import the excel in matlab and then i create a plot from the 2 columns.
Now i want to find the integral of these data.. Is that possible and how?

Respuestas (1)

Star Strider
Star Strider el 25 de Mayo de 2017

0 votos

Use the trapz or cumtrapz function to integrate a vector.

2 comentarios

Manolis ALdpn
Manolis ALdpn el 25 de Mayo de 2017
so i have to do trapz(A,B) ? The set of data on A,B columns represent a function..
Star Strider
Star Strider el 25 de Mayo de 2017
The first argument to trapz is the independent variable (optional), and the second (required or only argument) is the dependent variable.
I have no idea what ‘A’ and ‘B’ are, so I cannot answer that.

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 25 de Mayo de 2017

Comentada:

el 25 de Mayo de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by