How to do definite integral in MATLAB
Mostrar comentarios más antiguos
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 comentarios
Star Strider
el 7 de Abr. de 2014
You can do it numerically ( integrate and similar functions ) or symbolically ( int ). What you do likely depends on what y(t) is. Experiment, and if you have problems, return here (to this thread) for help.
S. David
el 7 de Abr. de 2014
Star Strider
el 7 de Abr. de 2014
Editada: Star Strider
el 7 de Abr. de 2014
What is your original function? Why the interpolation?
S. David
el 7 de Abr. de 2014
Respuestas (0)
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!