File Exchange

image thumbnail

Trapezoidal Integration

version 1.0.0.0 (1.21 KB) by Aravazhi Anbarasu
Simple and intuitive numerical integration based on trapezoidal rule.

2 Downloads

Updated 15 Jan 2013

View License

Y = int_trapz(X,Ts,~InitCond)
Input
X = Input data
Ts = Sampling Time/Integration Time
InitCond = Optional argument, Else X(1)taken as initial condition.

Cite As

Aravazhi Anbarasu (2021). Trapezoidal Integration (https://www.mathworks.com/matlabcentral/fileexchange/39862-trapezoidal-integration), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

HN

Bhargava Reddy

Aravazhi Anbarasu

Its more intuitive and allows initial conditons.Its more similar to using cumtrapz.Limits are it doesnt allow non-uniform sampling.

Eric

Do you claim any improvements over Matlab's built-in trapz function? If not, why bother?

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Numerical Methods

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!