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?

Answers (2)

Torsten
Torsten on 8 Jan 2019
Use "trapz".
Best wishes
Torsten.

2 Comments

How to specify limit in trapz?
Torsten
Torsten on 8 Jan 2019
Edited: Torsten on 8 Jan 2019
The first and last vector entry are the lower and upper limit of integration.

Sign in to comment.

Asked:

on 8 Jan 2019

Edited:

on 8 Jan 2019

Community Treasure Hunt

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

Start Hunting!