You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
If you want to integrate numerically an analytical function, you can use QUAD or similar. However, if you want to integrate already sampled data (equidistantly), and if the data are sufficiently smooth, instead of TRAPZ you will prefer SIMPSUM, numerical integration by Simpson method. It works on vectors and matrices (columnwise), calculates the average value of the sampled data, or simpson integral itself, if you supply the range(s) of independent variable(s). If you have nonequally spaced, but still smooth data, you can first resample them equidistantly with the help of some interpolation program like interp1(...'spline') and then apply SIMPSUM.
Cite As
Vassili Pastushenko (2026). SIMPSUM (https://www.mathworks.com/matlabcentral/fileexchange/5721-simpsum), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: CUMSIMPSUM
General Information
- Version 1.0.0.0 (737 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
