xxxxxxxxxx
% Create a tiled layout with 2 rows and 1 column
tiledlayout(2, 1);
% Plot in the first tile (first row, first column)
nexttile(1);
plot(x1, y1); % Replace with your plot data
title('Plot 1');
% Plot in the second tile (second row, first column)
nexttile(2);
plot(x2, y2); % Replace with your plot data
title('Plot 2');