Effacer les filtres
Effacer les filtres

parametric code for creating a meshgrid of a cylinder

12 vues (au cours des 30 derniers jours)
Anton Dor
Anton Dor le 8 Juil 2020
Hi, I need to create a parametric Matlab code where the user inputs the cylinder radius and it's length and also the number of theta and z divisions.
Based upon this input the code needs to create the surface of a cylinder and mesh it according to the specified divisions.
For example:
r=5, L=5, d_theta=20, d_z=5
This means that I'd need to get a 3D plot of a surface of a cylinder that has a radius of 5 and length of 5. It's meshgrid will consist of 20 divisions per 2D circle and 5 circles (stacked one on top of the other - creating the surface of a cylinder).
Also, I'd need to save these meshgrid points for further use.
Thanks very much!!!

Réponses (0)

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by