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 CenterMATLAB Answers에서 Elementary Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0