You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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);
Cite As
Nima Moshtagh (2026). Regular Polygons (https://www.mathworks.com/matlabcentral/fileexchange/16608-regular-polygons), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.75 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
