| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
A = polyarea(X,Y)
A = polyarea(X,Y,dim)
A = 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 multidimensional arrays, polyarea returns the area of the polygons in the first nonsingleton dimension of X and Y.
A = polyarea(X,Y,dim) operates along the dimension specified by scalar dim.
L = linspace(0,2.*pi,6); xv = cos(L)';yv = sin(L)'; xv = [xv ; xv(1)]; yv = [yv ; yv(1)]; A = polyarea(xv,yv); plot(xv,yv); title(['Area = ' num2str(A)]); axis image

![]() | poly | polyder | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |