No BSD License  

Highlights from
varea.m

5.0

5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 1.06 KB File ID: #3284

varea.m

by Kang Zhao

 

18 Apr 2003 (Updated 23 Apr 2003)

Compute the area and judge the direction of a closed curve.

| Watch this File

File Information
Description

Compute the area and judge the direction of a closed curve.
function area=varea(C)
%VAREA compute the "sign-area" of a closed curve.
% NOTE: Sign-area equals to the area of the closed curve when it is in anti-clockwise and equals to the negative area when it is in clockwise.
% Negative area means equal to area in magnitude but is negtive in sign.We can see that this script may also be used to judge the direction of a closed curve.
% C provides the coordinats of the nodes of the curve in the following way:
% C=[x1 x2 ...
% y1 y2 ...]
% AREA=VAREA(C)
% AREA returns the area of the curve(>0) when it is in anti-clockwise
% AREA returns the negtive area of the curve(<0) when it is in clockwise

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Apr 2006 sahika vatan korkmaz  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data exploration Kang Zhao 22 Oct 2008 07:00:06
area Kang Zhao 22 Oct 2008 07:00:06
direction Kang Zhao 22 Oct 2008 07:00:06
clockwise Kang Zhao 22 Oct 2008 07:00:07
graphics Kang Zhao 22 Oct 2008 07:00:07

Contact us at files@mathworks.com