Back to Data Visualization
zlabel
Label z-axis
Syntax
zlabel(str)
Description
Sets the z-axis label of the most recently created 3D chart.
Parameters
| Name | Description |
|---|---|
| str | Label string |
Returns
null
Examples
Try It
>> [X, Y] = meshgrid(-2:0.2:2);
Z = X .* exp(-X.^2 - Y.^2);
surf(X, Y, Z);
zlabel('Height')