shipLOA = 100;
shipBeam = 28;
shipShapeY = [0, shipBeam/2  shipBeam/2 -shipBeam/2 -shipBeam/2   0];
shipShapeX = [0 -(.3*shipLOA) -shipLOA,   -shipLOA     -(.3*shipLOA) 0];
shipShapeXY = [shipShapeX; shipShapeY];

%figure

%hold on
 
figure1 = figure;
ylim([0 150]);
% axes1 = axes('Parent',figure1);
%Uncomment the following line to preserve the X-limits of the axes
% xlim(axes1,[-100 100]);
% box(axes1,'on');

ship = fill(shipShapeXY(1,:), shipShapeXY(2,:), 'r');

%hold

offset = 0;
for i = 1:10
    offset = offset + 10;
    ship = fill(shipShapeXY(1,:), shipShapeXY(2,:) + offset, 'r');
    drawnow update
    
    pause(2)
    
end
