[X,Y] = pickdata returns the data (X,Y) from the active curve. If
several curves are present and none is selected, the first one is
picked (see fitparam to change this default setting).
[X,Y] = pickdata(H) returns the data (X,Y) of the curve specified by
the handle H (eg, GCF, GCO etc). GCF, the current figure, is taken by
default.
For histograms, the X data are taken at the middle of the bins.
[X,Y,H] = pickdata(...) also returns the handle to the current curve.
See Also
SELECTDATA, selectfit, showfit, ezfit.