function plotAssembly close all; load slowCompression.dat load fastCompression.dat load flatBottom.dat x=[1.8 2.9]; y=[0 0]; plot(x, y, 'LineWidth', 2); hold on; y=[-1 -1]; plot(x, y, 'LineWidth', 2); n = size(slowCompression, 1); y = [0 1]; for i = 1:n x = [slowCompression(i) slowCompression(i)]; plot(x, y, '--', 'LineWidth', 2); end y=[-1 0]; n = size(fastCompression, 1); for i = 1:n x = [fastCompression(i) fastCompression(i)]; plot(x, y, '--', 'LineWidth', 2); end y=[-2 -1]; n = size(flatBottom, 1); for i = 1:n x = [flatBottom(i) flatBottom(i)]; plot(x, y, '--', 'LineWidth', 2); end set(gca, 'FontSize', 20); xlabel('D/\sigma'); set(gca, 'YTick', []) xlim([1.9 2.82]) saveas(gca, 'assembly.png');