surfl
Surface plot of a function of two variables with continuous shading.
surfl(z)
surfl(x,y,z)
Inputs
z An mXn matrix of the function values to plot.
x Either a vector of length n or a matrix of size mXn .
y Either a vector of length m or a matrix of size mXn .


Description
The inputs x and y should either be both vectors, or matrices of the indicated size. In the former case, the function is assumed to be of the form z[i,j]=f(x[j], y[i]) . Otherwise, the functional form z[i,j]=f(x[i,j],y[i,j]) is assumed.

The color of each point on the surface is determined by the interpolated value of z at the point.
Example
>>x=[0:.02:1]'
>>y=x
>>z=sin(x*pi)*cos(2*x'*pi)
>>surfl(x,y,z)
>>title('Surface Plot')