function X = getpoints;

figure;
title('Click to add points; press return to exit');
say click to add points.  Press return in figure to exit.
[x y] = ywgetpts;
X = [x y];
close(gcf);
