%% Specify z-Axis Tick Labels for Specific Axes
% Starting in R2019b, you can display a tiling of plots using the tiledlayout and nexttile functions. Call the tiledlayout function to create a 2-by-1 tiled chart layout. Call the nexttile function to create the axes objects ax1 and ax2. Create two 3-D stem plots. Set the z-axis tick values and labels for the first plot by passing ax1 as the first input argument to the zticks and zticklabels functions.

tiledlayout(2,1)
ax1 = nexttile;
stem3(ax1,4*rand(5))
zticks(ax1,[0 2 4])
zticklabels(ax1,{'z = 0','z = 2','z = 4'})

ax2 = nexttile;
stem3(ax2,4*rand(5))

% Copyright 2019 The MathWorks, Inc.