Numerical Integration for MATLAB
Version 1.0.0 (2.59 KB) by
Dr. Manotosh Mandal
MATLAB codes for user-defined Functions Trapezoidal, Simpson's 1/3, 3/8, and Weddle's rules for Numerical Integration
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 (2024). 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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |