zlabel

Annotates the z-axis.

Syntax

handle = zlabel(str)

handle = zlabel(hAxis, str)

h = zlabel(..., property, value, ...)

Inputs

str
Name of the z-axis.
Type: char | string
Dimension: scalar
hAxes
Axis handle.
Type: double
Dimension: scalar
property
Properties that control the appearance or behavior of the graphics object.
Type: string
Dimension: scalar
value
Value of the properties.
Type: double | integer | string
Dimension: scalar

Outputs

h
Handle of the label graphics object.

Examples

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')
Figure 1. Simple zlabel example


Optional arguments 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