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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by