Plotting a cylinder with height devision

1 回表示 (過去 30 日間)
Anton Dor
Anton Dor 2020 年 8 月 1 日
回答済み: Rishik Ramena 2020 年 8 月 6 日
Hi, I need to plot a 3D cylinder based on input of height and diameter. I'd need to divide it by height according to another parameter.
Thanks,
Anton.

回答 (1 件)

Rishik Ramena
Rishik Ramena 2020 年 8 月 6 日
You can plot a 3D cylinder in MATLAB using the inbuilt function cylinder. A simple example of the implementation can be found here. Note that the function takes in the radius as a parameter which is half the diameter and the height of the cylinder is modified by multiplying the value(height) with the extracted Z coordinate.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by