How to write a cylinder on a plane

조회 수: 2 (최근 30일)
Ko
Ko 2013년 3월 14일
I'd like to write a matlab code that would create a cylinder without hollow at the top and standing on a plane....
radius = 0,5
height=3
x-coordinate=20
y-coordinate=30
Any suggestion will be greatly appreciated.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 14일
편집: Azzi Abdelmalek 2013년 3월 14일
height=3
radius=0.5
x_c=20
y_c=30
[X,Y,Z] = cylinder(radius)
Z=Z*height
X=X+x_c
Y=Y+y_c
mesh(X,Y,Z)
  댓글 수: 1
Ko
Ko 2013년 3월 15일
Thanks a lot Sir.... You help me a lot...

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by