How to draw 2D object with plot 3D matlab
I have 2 circle and 2 radius ( a and b )and height (h) between two circle.
draw this 2D figure to 3D figure with plot or surf

 채택된 답변

Matt J
Matt J 2021년 4월 15일
편집: Matt J 2021년 4월 15일

1 개 추천

The command cylinder() will be helpful. This example in particular,

댓글 수: 6

Moufid Meddeb
Moufid Meddeb 2021년 4월 15일
thank u for ur answer sir
but I did that before, but didn't get 2 lines same in the figure
i get that
Matt J
Matt J 2021년 4월 15일
That is definitely a mistake.
Moufid Meddeb
Moufid Meddeb 2021년 4월 16일
like this
Matt J
Matt J 2021년 4월 16일
편집: Matt J 2021년 4월 16일
r=____________
[X,Y,Z] = cylinder(r,1000);
surf(X,Y,Z,'EdgeColor','none')
Moufid Meddeb
Moufid Meddeb 2021년 4월 16일
how u do this , i have two radius and two circle ??
Matt J
Matt J 2021년 4월 16일
As I said, the example at the link I gave you is very similar to what you are trying to do.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

질문:

2021년 4월 15일

댓글:

2021년 4월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by