Draw filled triangle and possibly change aspect ratio
Afficher commentaires plus anciens
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 commentaire
Rik
le 25 Mai 2020
You can probably solve your question with the patch function. You only need to calculate the coordinates of the corners.
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Polygons dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!