Centroid of a Convex n-Dimensional Polyhedron
by Michael Kleder
19 Sep 2005
(Updated 21 Sep 2005)
No BSD License
Computes the center of gravity of a convex polyhedron in any number of dimensions.
Download Now
|
Watch this File
|
| File Information |
| Description |
USAGE: C = centroid(P)
P = Matrix of convex polyhedron vertices: each row is a vertex, and each column is a dimension.
C = Row vector of centroid coordinates. Each column is a dimension.
Notes:
(1) This function computes the centroid by partitioning into simplices and determining the weighted sum of their centroids.
(2) Written in response to a question on comp.soft-sys.matlab
Michael Kleder, Sep 2005 |
| MATLAB release |
MATLAB 7.0.4 (R14SP2)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (7) |
| 13 Oct 2005 |
Birajashis Pattnaik
|
|
|
| 03 Nov 2005 |
Glen Lichtwark
|
|
|
| 26 Oct 2006 |
fady dawoud
|
|
|
| 10 Nov 2006 |
The Author
|
|
|
| 01 May 2007 |
Roja B
|
|
|
| 03 May 2007 |
The Author
|
|
|
| 06 Mar 2008 |
Charlotte B
|
|
|
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com