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.

Antworten (1)

Rishik Ramena
Rishik Ramena am 6 Aug. 2020

0 Stimmen

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.

Kategorien

Mehr zu Graphics finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Tags

Gefragt:

am 1 Aug. 2020

Beantwortet:

am 6 Aug. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by