Code covered by the BSD License  

Highlights from
Trapezoidal Integration

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

Trapezoidal Integration

by

Aravazhi Anbarasu

 

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

Bhargava Reddy

 
17 Jan 2013 Aravazhi Anbarasu

Aravazhi Anbarasu

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

Comment only
15 Jan 2013 Eric

Eric

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

Comment only

Contact us