Effacer les filtres
Effacer les filtres

i want to draw a triangle with vertices on 3 axis, how to do it? and also how to draw a incircle in it?

24 vues (au cours des 30 derniers jours)
lets say the vertices are (1,0,0), (0,1,0), (0,0,1)

Réponses (1)

Cris LaPierre
Cris LaPierre le 13 Oct 2021
You could just use plot3. Just remember to close the loop.
plot3([1,0,0,1], [0,1,0,0], [0,0,1,0])
If you want it filled in, you could use fill3.
figure
fill3([1,0,0], [0,1,0], [0,0,1],'m')
  2 commentaires
Cris LaPierre
Cris LaPierre le 13 Oct 2021
Same process. You just need a lot more points to make the shape look circular.
In 2D, you could use the rectangle function. See this example.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by