image thumbnail

Trapezoidal method (composite)

version 1.0.2 (1.24 KB) by Manotosh Mandal
Matlab codes for composite Trapezoidal method for numerical integration.


Updated 22 Oct 2019

View License

In mathematics, the trapezoid rule is a numerical integration method, that is, a method to calculate approximately the value of the definite integral. The rule is based on approximating the value of the integral of f (x) by that of the linear function that passes through the points (a, f (a)) and (b, f (b)).

Enter lower limit a: 1
Enter upper limit b: 2
Enter the step length h: 0.1

The value of integration is 0.410451>>

Cite As

Manotosh Mandal (2022). Trapezoidal method (composite) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!