5.0

5.0 | 2 ratings Rate this file 4 Downloads (last 30 days) File Size: 1.75 KB File ID: #16608
image thumbnail

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  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
regular polygon Nima Moshtagh 22 Oct 2008 09:28:40
graph Nima Moshtagh 22 Oct 2008 09:28:40
star polygon Nima Moshtagh 22 Oct 2008 09:28:40
mathematics Nima Moshtagh 22 Oct 2008 09:28:40
general Nima Moshtagh 22 Oct 2008 09:28:40

Contact us at files@mathworks.com