Main Content
nsidedpoly
Regular polygon
Description
pgon = nsidedpoly(
returns a regular
polygon with n
)n
equal-length sides. The center of
pgon
is at the point (0,0), and the circumscribed circle of
the polygon has radius 1.
pgon = nsidedpoly(
specifies additional properties of the polygon using one or more name-value pair
arguments. For example, n
,Name,Value
)pgon = nsidedpoly(4,'SideLength',5)
creates a square centered at (0,0) with sides of length 5.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2017b