Home > freetb4matlab > general > trapz.m

trapz

PURPOSE ^

%

SYNOPSIS ^

function z = trapz (x, y, dim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{z} =} trapz (@var{y})
% @deftypefnx {Function File} {@var{z} =} trapz (@var{x}, @var{y})
% @deftypefnx {Function File} {@var{z} =} trapz (@dots{}, @var{dim})
% 
% Numerical integration using trapezoidal method.  @code{trapz
% (@var{y})} computes the integral of the @var{y} along the first
% non-singleton dimension.  If the argument @var{x} is omitted a 
% equally spaced vector is assumed.  @code{trapz (@var{x}, @var{y})} 
% evaluates the integral with respect to @var{x}.
%  
% @seealso{cumtrapz}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003