Be the first to rate this file! 22 Downloads (last 30 days) File Size: 1.21 KB File ID: #39862

Trapezoidal Integration

by Aravazhi Anbarasu

 

15 Jan 2013

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
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