%% Specify Axes for 3-D Scatter Plot
% Starting in R2019b, you can display a tiling of plots using the tiledlayout and nexttile functions.
% Load the seamount data set to get vectors x, y, and z. 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. Then create separate scatter plots in the axes by specifying the axes object as the first argument to scatter3.

load seamount
tiledlayout(2,1)
ax1 = nexttile;
ax2 = nexttile;
scatter3(ax1,x,y,z,'MarkerFaceColor',[0 .75 .75])
scatter3(ax2,x,y,z,'*')

% Copyright 2019 The MathWorks, Inc.