ticks = zticks()
zticks(values)
zticks('auto')
zticks('manual')
m = zticks('mode')
zticks(ax, ...)
| Parameter | Description |
|---|---|
| values | Numeric vector of z-axis tick values. |
| 'auto' | Enable automatic z-tick selection. |
| 'manual' | Freeze the current z-tick values. |
| 'mode' | Return the z-tick mode. |
| ax | Target axes. Default is the current axes. |
| Parameter | Description |
|---|---|
| ticks | Numeric row vector of z-axis tick values. |
| m | 'auto' or 'manual'. |
zticks gets or sets the tick values along the z-axis of the current axes.
Specifying tick values switches the z-tick mode to manual.
t = linspace(0, 10, 50);
plot3(sin(t), cos(t), t);
zticks(0:2:10);
ticks = zticks()
| Version | Description |
|---|---|
| 2.0.0 | initial version |