Numerical integration- Multiple-Application Trapezoidal Rule

version 1.0.0 (1.9 KB) by Manuel Ferrer
Performs the numerical integration by the multiple-application trapezoidal rule


Updated 3 Dec 2019

View License

Multiple-Application Trapezoidal Rule

Implementation based on the theory presented in "Numerical Methods for Engineers" by Steven C. Chapra

Instructions to use the function:

The user must provide the function as an anonymous function in the command window. This can be done by introducing

f=@(x) x.*exp(2*x)

Then, the user should invoke the function by indicating four parameters:


where f is the integrand and N is the number of intervals. lmin and lmax are the lower and upper limits of the definitive integrand. In addition, a figure is depicted showing the evaluation points and an approximated integration region.

Cite As

Manuel Ferrer (2022). Numerical integration- Multiple-Application Trapezoidal Rule (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: trapeze

Community Treasure Hunt

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

Start Hunting!