Centroid of a Convex n-Dimensional Polyhedron
by Michael Kleder
19 Sep 2005
(Updated 21 Sep 2005)
Computes the center of gravity of a convex polyhedron in any number of dimensions.
|
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 (9) |
| 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
|
|
|
| 21 May 2010 |
Chris Godau
|
|
|
| 23 Feb 2011 |
Raghuram
|
|
|
|
Contact us at files@mathworks.com