Plotting a cylinder with height devision

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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2020년 8월 1일

답변:

2020년 8월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by