File Exchange

image thumbnail

Regular Polygons

version 1.0 (1.75 KB) by

Plots the regular polygon {N/d} with vertices on a circle of radius 'rad'.

1 Download

Updated

View License

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);

Comments and Ratings (2)

laleh

laleh (view profile)

Sam Pitroda

MATLAB Release
MATLAB 7.1.0 (R14SP3)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video