How can I integrate experimental data using a for loop?

1 回表示 (過去 30 日間)
Joe Willer
Joe Willer 2022 年 1 月 30 日
回答済み: KSSV 2022 年 1 月 30 日
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

回答 (1 件)

KSSV
KSSV 2022 年 1 月 30 日
You need not to use a loop. Read about trapz.

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by