%% Tick Label Format 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 1-by-2 tiled chart layout. Call the nexttile function to create the axes objects ax1 and ax2. Create two 3-D stem plots, and specify the tick label format for the z-axis of the left plot by specifying ax1 as the first input argument to ztickformat. Display the tick labels in U.S. dollars.

tiledlayout(1,2)
ax1 = nexttile;
stem3(ax1,4*rand(5))
ztickformat(ax1,'usd')

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

% Copyright 2019 The MathWorks, Inc.