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.
Plotting a cylinder with height devision
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!