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 个评论

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.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

提问:

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