How to do definite integral in MATLAB

3 views (last 30 days)
S. David
S. David on 7 Apr 2014
Commented: S. David on 7 Apr 2014
Hello all,
I have this function y of t, and I want to find the following definite integral (I am using the LateX syntax):
\int_{kT}^{(k+1)T}y(t)\,dt
for k=0,1,..., K-1. How can I do this in MATLAB?
Note: K is a very large number, and hence, I need an efficient way of doing the integration for all k other than for-loop approach.
Thanks
  5 Comments
S. David
S. David on 7 Apr 2014
Someone told me I can do this by interpret integration as summation (integration by definition).

Sign in to comment.

Answers (0)

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by