Description Use surf and surfc to view mathematical functions over a rectangular region.
The height, Z , is a single-valued function defined over a geometrically rectangular grid. Z specifies the color data as well as surface height, so color is proportional to surface height. X and Y are vectors or matrices defining the x and y components of a surface. In this case, the vertices of the surface faces are triples. When i and j are integer values, they define a rectangular grid with integer grid points.