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

36 次查看(过去 30 天)
lets say the vertices are (1,0,0), (0,1,0), (0,0,1)

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-10-13
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')

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by