function dot2dot ( X )

%*****************************************************************************80
%
%% dot2dot draws line segments stored as a 2-by-n matrix.
%
%  Discussion:
%
%    H = house();
%    dot2dot(H) draws the house. 
%    wiggle(H)
%
%  License:
%
%    Copyright 2014 Cleve Moler
%    Copyright 2014 The MathWorks, Inc.
%
%  Modified:
%
%    16 January 2020
%
%  Author:
%
%    Original version by Cleve Moler.
%    This version by John Burkardt.
%
%  Output:
%
%    real X(2,:), a list of line segments.
%
  X(:,end+1) = X(:,1);
  plot ( X(1,:), X(2,:), '.-', 'markersize', 18, 'linewidth', 2 );
  grid ( 'on' );
  axis ( 10 * [ -1, 1, -1, 1 ] );
  axis ( 'square' );

  return
end
