How to draw 2D object with plot 3D matlab

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 ExchangeGraphics 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