zlabel

Annotates the z-axis.

Syntax

handle = zlabel(str)

handle = zlabel(hAxis, str)

Inputs

str
Name of z-axis.
Type: char | string
Dimension: scalar
hAxes
Axis handle.
Type: double
Dimension: scalar

Outputs

h
Handle of the label graphics object.

Example

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