Hi Lawrence,
Thanks for asking. In the 3d models, there are always one more layer of vertices than elements, so md.mesh.numberofelements should actually be equal to md.mesh.numberofelements2d * (md.mesh.numberoflayers - 1). And to plot the values, you can easily use the 'layer' option of plotmodel and specify which layer you are interested in, so for example:
plotmodel(md,'data',md.materials.rheology_n,'layer',2)
Best
Helene