Mesh the dodecahedron - MATLAB Cody - MATLAB Central

Problem 60985. Mesh the dodecahedron

Difficulty:Rate
Problem statement
An dodecahedron is a regular polyhedron with 20 vertices and 12 pentagonal faces. It is also one of the five well known platonic solids.
A pentagonal mesh is simply a N x 5 matrix of positive integers where each row contains the vertex indices of a pentagonal face, and where N is the number of faces / pentagons.
Your task here is to mesh this octahedron. To do so, you will list the pentagons/rows in a matrix of faces, F.
The row order of the faces in the list doesn't matter.
Tip
  • Vertex indices are written on the figure below; use it to help you visualize;
  • You can start with the top [1 2 3 4 5] and bottom pentagons, they are the easiest ones to identify here.
Forbidden functions / expressions
  • regexp
  • assignin
  • str2num
  • echo
See also

Solution Stats

80.0% Correct | 20.0% Incorrect
Last Solution submitted on Jul 30, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers4

Suggested Problems

More from this Author42

Community Treasure Hunt

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

Start Hunting!