
% Lab 9 Solutions
% CS 1109, Summer 2011
% July 26

% This script creates a new figure window and allows the user to click on 
% it as many times as they wish, terminated by a press of the return key.
% It then connects the points the user clicked on using a solid black line,
% with squares marking the clicked points.

% Collect user clicks
[x y] = ginput;

plot(x, y, 'ks-')