该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
function area = polyarea(x,y,dim)
%POLYAREA Area of polygon.
% POLYAREA(X,Y) returns the area of the polygon specified by
% the vertices in the vectors X and Y. If X and Y are matrices
% of the same size, then POLYAREA returns the area of
% polygons defined by the columns X and Y. If X and Y are
% arrays, POLYAREA returns the area of the polygons in the
% first non-singleton dimension of X and Y.
%
% The polygon edges must not intersect. If they do, POLYAREA
% returns the absolute value of the difference between the clockwise
% encircled areas and the counterclockwise encircled areas.
%
% POLYAREA(X,Y,DIM) returns the area of the polygons specified
% by the vertices in the dimension DIM.
%
% Class support for inputs X,Y:
% float: double, single
% Copyright