You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This is just a basic numerical integration tool that allows the user to set a function y(x) and the x range where the integral should be calculated. I started doing it just to see how the Monte Carlo Integration Method worked, but expanded it to Simpsons and Trapezoidal, which allowed me to verify the reliability of the methods.
Monte Carlo is a very good method for any function. It depends solely on the number of random points which you "plot" on the graph. (You may change the number of points in the code - Nt).
Simpsons Method uses polynomial approximation to calculate the integral, therefore is not good for functions that vary a lot.
Trapezoidal Rule is the most simple type of numerical integration, but if you increase the number of trapezoids, it gives you a very good approximation of the integral of any function.
The code lack commentaries, as I was not thinking of uploading it when I began to work on it, so I am sorry for that.
Please feel free to ask questions about the code or suggest any modification that might reduce the process time for larger numbers of internal points on Monte Carlo and trapezoids on Trapezoidal Rule.
Cite As
Amir John Scheid (2026). Numerical Integraton Tool with GUI (https://au.mathworks.com/matlabcentral/fileexchange/48382-numerical-integraton-tool-with-gui), MATLAB Central File Exchange. Retrieved .
Categories
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers
General Information
- Version 1.0.0.0 (12 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
