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 (최근 30일)
이전 댓글 표시
lets say the vertices are (1,0,0), (0,1,0), (0,0,1)
댓글 수: 0
답변 (1개)
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')
댓글 수: 2
Cris LaPierre
2021년 10월 13일
Same process. You just need a lot more points to make the shape look circular.
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!