from
dragndrop
by Michelle Hirsch This allows you to easily add drag and drop capabilities to any GUI.
dd_example1_cbk(drag,drop)
function dd_example1_cbk(drag,drop)
% DD_EXAMPLE1_CBK Callback function for dd_example1
% Copyright 2003 The MathWorks, Inc
disp(['You just dragged "' get(drag,'String') '" onto "' get(drop,'String') '"']);