Problem 60566. Given a Polyshape_01 (ps) Return its Perimeter, Area, and Centroid.
Return the perimeter (P) of a polyshape object, which is the sum of the lengths of its boundaries.
Return the total area (A) of a polyshape object, which is the sum of the areas of the solid regions that make up the polyshape.
Return the x-coordinate (Cx) and the y-coordinate (Cy) of the centroid of a polyshape.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
6687 Solvers
-
Sum all integers from 1 to 2^n
16459 Solvers
-
Back to basics 21 - Matrix replicating
1706 Solvers
-
343 Solvers
-
Crate a vector of logarithmically spaced
107 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!