%% Specify Target Axes
% Create a tiled chart layout in the 'flow' tile arrangement, so that the axes fill the available space in the layout. Next, call the nexttile function to create an axes object and return it as ax1. Then display a log-linear plot by passing ax1 to the semilogy function.

tiledlayout('flow')
ax1 = nexttile;
x = 1:100;
y1 = x.^2;
semilogy(ax1,x,y1)

%
% Repeat the process to create a second log-linear plot.

ax2 = nexttile;
y2 = 1./x;
semilogy(ax2,x,y2)

% Copyright 2020 The MathWorks, Inc.