zlabel
Annotates the z-axis.
Syntax
handle = zlabel(str)
handle = zlabel(hAxis, str)
h = zlabel(..., property, value, ...)
Inputs
- str
 - Name of the z-axis.
 - hAxes
 - Axis handle.
 - property
 - Properties that control the appearance or behavior of the graphics object.
 - value
 - Value of the properties.
 
Outputs
- h
 - Handle of the label graphics object.
 
Examples
clf;
x=[0:0.1:2*pi];
y=x;
z=sin(x')*cos(y);
s=surf(x, y, z)
handle = zlabel('this is zlabel')Figure 1. Simple zlabel example
clf;
x=[0:0.1:2*pi];
y=x;
z=sin(x')*cos(y);
s=surf(x, y, z)
handle = zlabel('this is zlabel', 'fontsize', 12, 'fontweight', 'bold')
Figure 2. Optional arguments in the zlabel command