Numerical Integration for MATLAB

MATLAB codes for user-defined Functions Trapezoidal, Simpson's 1/3, 3/8, and Weddle's rules for Numerical Integration
32 Downloads
Updated 20 Jan 2022

View License

For details of the method and also coding watch the lecture: https://youtu.be/DfPbztQ4yPs
Example:
Enter the function f(x): inline('1/(1+x)')
Enter lower limit a: 1
Enter upper limit b: 2
Enter the no. of subinterval: 12
result_trap =
0.4055
result_sim13 =
0.4055
result_sim38 =
0.4055
result_wed =
0.4055

Cite As

Dr. Manotosh Mandal (2026). Numerical Integration for MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/105500-numerical-integration-for-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0