File Exchange

image thumbnail

Trapezoidal Integration

version 1.0 (1.21 KB) by

Simple and intuitive numerical integration based on trapezoidal rule.

0 Downloads

Updated

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.

Comments and Ratings (3)

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

Eric

Eric (view profile)

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

MATLAB Release
MATLAB 7.11 (R2010b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video