How to integrate a vector?

2 views (last 30 days)
Mr. 206
Mr. 206 on 8 Jan 2019
Edited: Torsten on 8 Jan 2019
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
Mr. 206
Mr. 206 on 8 Jan 2019
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.


madhan ravi
madhan ravi on 8 Jan 2019

Community Treasure Hunt

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

Start Hunting!