How to integrate a vector?

I have equation like this.
E(x) =
and another one is like.
E(x) =
I don't have the function, rather i have x and y (y= f(x)) values.
How can i implement this two equation?

回答 (2 件)

Torsten
Torsten 2019 年 1 月 8 日

0 投票

Use "trapz".
Best wishes
Torsten.

2 件のコメント

Mr. 206
Mr. 206 2019 年 1 月 8 日
How to specify limit in trapz?
Torsten
Torsten 2019 年 1 月 8 日
編集済み: Torsten 2019 年 1 月 8 日
The first and last vector entry are the lower and upper limit of integration.

サインインしてコメントする。

カテゴリ

質問済み:

2019 年 1 月 8 日

編集済み:

2019 年 1 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by