Hi @Afsaneh, you need a renderer, either rasterized or ray-traced (slower). My 3D Rendering Toolbox on File Exchange will easily handle this. For example, you can see the toolbox generating a Z map in the figure below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1613631/image.gif)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!