waterfall
Creates waterfall meshes in an axes and returns handles of the meshes.
Syntax
h = waterfall(x, y, z)
h = waterfall(..., color)
h = waterfall(..., property, value, ...)
h = waterfall(hAxes, ...)
Inputs
- x, y, z
 - Range of the x, y, and z axes..
 - color
 - Color of surface.
 - property
 - Properties that control the appearance or behavior of the graphics object.
 - value
 - Value of the properties.
 - hAxes
 - Axis handle. .
 
Outputs
- h
 - Handle of the surface graphics object.
 
Example
Simple waterfall example.
x=[0:0.1:2*pi];
y=x;
z=sin(x')*cos(y);
w=waterfall(x, y, z)
      Figure 1. Waterfall plot
Comments
If there is no axes, one will be created first. If x and y are omitted, the index of the columns of z is used for x coordinates and the index of the rows of z is used for y coordinates. waterfall takes optional arguments to control the surafce style. It can be either the color of the meshes (not supported yet), or property/value pair(s), or both. If the first argument of waterfall is an axes handle, lines will be created in that axes.