from
dragndrop
by Michelle Hirsch This allows you to easily add drag and drop capabilities to any GUI.
dd_example4_cbk1(drag,drop);
function dd_example4_cbk1(drag,drop);
% DD_EXAMPLE4_CBK1 First callback for DD_EXAMPLE4. Defines behavior for 2D Axes
% Copyright 2003 The MathWorks, Inc
str = get(drag,'string');
set(gcf,'CurrentAxes',drop);
L = feval(str);
plot(L)