MATLAB: Drag and drop graphics

handle graphicsMATLAB

How can I drag and drop graphics in Matlab?

Best Answer

Mathworks has provided technical solution 1-4DNMFD which gives code for dragging and dropping on a single figure. It works by using the figure ButtonDownFcn, WindowButtonUpFcn, and WindowButtonMotionFcn . The Motion function is used to detect the CurrentPoint and move the object to there.
Related Question