Regular Polygons
Versione 1.0.0.0 (1,75 KB) da
Nima Moshtagh
Plots the regular polygon {N/d} with vertices on a circle of radius 'rad'.
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);
Cita come
Nima Moshtagh (2024). Regular Polygons (https://www.mathworks.com/matlabcentral/fileexchange/16608-regular-polygons), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R14SP3
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Elementary Polygons in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |