From: Surbhi Razdan on
How can integration over a discetre interval be done using MATLAB?
From: Torsten Hennig on
> How can integration over a discetre interval be done
> e using MATLAB?

What is 'integration over a _discrete_ interval' ?

Best wishes
Torsten.
From: Steven Lord on

"Surbhi Razdan" <surbhi_bhan(a)gmail.com> wrote in message
news:hphcfk$o1m$1(a)fred.mathworks.com...
> How can integration over a discetre interval be done using MATLAB?

If you mean you want to integrate a function numerically over a finite
interval, use QUADGK, QUAD, or QUADL.

If you mean you want to integrate a function numerically over a 2D or 3D
region look at QUAD2D, DBLQUAD, or TRIPLEQUAD.

If you want to integrate a function symbolically and have Symbolic Math
Toolbox available, use INT.

If you just have data representing the values of a function at certain
locations in your interval, use TRAPZ.

If you mean something else, please clarify what you're looking to do.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ