Create polygon with more contour points (not only vertices)
2 ビュー (過去 30 日間)
古いコメントを表示
I would like to know how to create e.g. a hexagon with more points over the contourns, instead of having only the points for the 6 vertices. The following code creates a hexagon as a set of 7 (x,y) points that perfectly define the hexagon. However, I want to have more (x,y) points located at the lines intersecting the vertices. Thanks!
r = 0.6327/cosd(30);
theta = 0:60:360;
x = r*cosd(theta);
y = r*sind(theta);
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Elementary Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!