Plotting a cylinder with height devision

2 visualizaciones (últimos 30 días)
Anton Dor
Anton Dor el 1 de Ag. de 2020
Respondida: Rishik Ramena el 6 de Ag. de 2020
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.

Respuestas (1)

Rishik Ramena
Rishik Ramena el 6 de Ag. de 2020
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.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by