Home > freetb4matlab > general > polyarea.m

polyarea

PURPOSE ^

%

SYNOPSIS ^

function a = polyarea (x, y, dim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} polyarea (@var{x}, @var{y})
% @deftypefnx {Function File} {} polyarea (@var{x}, @var{y}, @var{dim})
%
% Determines area of a polygon by triangle method.  The variables
% @var{x} and @var{y} define the vertex pairs, and must therefore have
% the same shape.  They can be either vectors or arrays.  If they are
% arrays then the columns of @var{x} and @var{y} are treated separately
% and an area returned for each.
%
% If the optional @var{dim} argument is given, then @code{polyarea}
% works along this dimension of the arrays @var{x} and @var{y}.
%
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003