Regular Polygons
by Nima Moshtagh
26 Sep 2007
(Updated 27 Sep 2007)
Plots the regular polygon {N/d} with vertices on a circle of radius 'rad'.
|
Watch this File
|
| File Information |
| Description |
Let d < N be a positive integer and define p = N/d. Let y_{1} be a point on the unit circle. Let R be clockwise rotation by the angle t = 2*pi/p. The generalized regular polygon {p} is given by the points y_{i+1} = R * y_{i}, and edges between points i and i+1.
Example:
polygon(9, 4, 1); |
| MATLAB release |
MATLAB 7.1.0 (R14SP3)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 28 Apr 2008 |
Sam Pitroda
|
|
|
| 18 Feb 2011 |
laleh
|
|
|
|
Contact us at files@mathworks.com