Code covered by the BSD License  

Highlights from
Trapezoidal Integration

3.0

3.0 | 1 rating Rate this file 19 Downloads (last 30 days) File Size: 1.21 KB File ID: #39862

Trapezoidal Integration

by

 

Simple and intuitive numerical integration based on trapezoidal rule.

| Watch this File

File Information
Description

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.

Required Products MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
08 Apr 2014 Bhargava Reddy  
17 Jan 2013 Aravazhi Anbarasu

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

15 Jan 2013 Eric

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

Contact us