Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

drag and drop graphics?

Asked by Walter Roberson

Walter Roberson (view profile)

on 25 Jan 2011

How can I drag and drop graphics in Matlab?

0 Comments

Walter Roberson

Walter Roberson (view profile)

Products

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 25 Jan 2011

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.

0 Comments

Walter Roberson

Walter Roberson (view profile)

Contact us