File Exchange

image thumbnail

Trapezoidal method (composite)

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

115 Downloads

Updated 22 Oct 2019

View Version History

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)).

Example:
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 (2020). Trapezoidal method (composite) (https://www.mathworks.com/matlabcentral/fileexchange/72483-trapezoidal-method-composite), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Edoardo Bertolotti

Brad Haddin

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!