from
dragndrop
by Scott Hirsch This allows you to easily add drag and drop capabilities to any GUI.
dd_example4_cbk2(drag,drop);
function dd_example4_cbk2(drag,drop);
% DD_EXAMPLE4_CBK2 Second callback for DD_EXAMPLE4. Defines behavior for 3D Axes
% Copyright 2003 The MathWorks, Inc
str = get(drag,'string');
set(gcf,'CurrentAxes',drop);
L = feval(str);
surf(L);shading interp