Is it possible to customize the mesh created by generatemesh?

I would like to create a mesh for a cylinder of radius R and length L that consists of:
  • a fine triangular mesh for the 2D circular cross section
  • a coarse rectangular mesh for the side.
So, in the end I want a mesh made of triangular prisms.
How can I create this using MATLAB (2016b)? I can only get a triangular mesh, and also I cannot make it coarse in one direction. Please, help.

Risposto:

il 30 Nov 2017

Community Treasure Hunt

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

Start Hunting!

Translated by