MATLAB: How to get the coordinates of hemispherical surfaces with rectangular mesh over it

coordinateshemispherical surfaceMATLAB

Hi all,
I am supposed to run a simulation in which i have to provide a surface with one hemispherical dimple over it. This surfaces is then supposed to be meshed with 256by256 node points. I am planning to create an excel file with the coordinates of Z along 256by256 mesh. I would like to know how to create a hemispherical concave surfaces and access the coordinates (which coincide with rectangular mesh nodes)over the hemispherical surface. Will appreciate your help. Thanks for your time.

Best Answer

I suggest you experiment with the sphere function until you get the result you want.
Related Question