How can I integrate experimental data using a for loop?

1 vue (au cours des 30 derniers jours)
Joe Willer
Joe Willer le 30 Jan 2022
Réponse apportée : KSSV le 30 Jan 2022
Hello everyone.
I've been struggling with this problem for a quite long time.
I have a table of experimental data with two columns and around a thousand rows.
I plotted the table and got a discrete curve.
Now, I wanted to find the area under the curve using a for loop.
How can I do that? Any help is appreciated.
With kind regards
Joe

Réponses (1)

KSSV
KSSV le 30 Jan 2022
You need not to use a loop. Read about trapz.

Catégories

En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by