Regular Polygons

バージョン 1.0.0.0 (1.75 KB) 作成者: Nima Moshtagh
Plots the regular polygon {N/d} with vertices on a circle of radius 'rad'.
ダウンロード: 1.6K
更新 2007/9/27

ライセンスの表示

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

引用

Nima Moshtagh (2024). Regular Polygons (https://www.mathworks.com/matlabcentral/fileexchange/16608-regular-polygons), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14SP3
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersElementary Polygons についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0