Draw filled triangle and possibly change aspect ratio
古いコメントを表示
How can I draw a filled equilateral triangle (actually white) with background black? I don't want to have any x and y axis on the drawing. I just need the graph.
And also how can I define an aspect ratio (hight:width) of the triangle and then get the different triangles of different aspect ratio from an equilateral triangle?
I think some logic for the length of pixels should work but I could not figure out.
Thanks in adavance!!
1 件のコメント
Rik
2020 年 5 月 25 日
You can probably solve your question with the patch function. You only need to calculate the coordinates of the corners.
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!