[XS YS] = selectdata selects part of the current curve by drawing a
polygon. Double click to exit.
[XS YS] = selectdata(H) allows to select part of the curve specified by
the handle H (eg, GCF, GCO etc). GCF, the current figure, is taken by
default, so that the first curve of the figure is used.
[XS YS] = selectdata(H,'show') also shows the data selected.
selectdata(H,'keep') deletes the data outside the polygon.
selectdata(H,'del') deletes the data inside the polygon.
(these two operations are not reversible).
See Also
pickdata, selectfit, drawpolygon.