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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Drag and drop onto a predetermined grid.

Asked by Tyler on 21 Mar 2014
Latest activity Commented on by Tayler on 11 Apr 2014

My current project is to design a GUI that allows users to create a series piping system with pumps, valves, connectors, and other things. What I would like to do is have all the possible parts shown on the side and then have the user drag them onto a grid where they would snap into place. Is there something in MATLAB that would allow me to do this or would I have to track where the piece is and manually tell it what position to snap to?

0 Comments

Tyler

Products

No products are associated with this question.

1 Answer

Answer by Jan Simon on 21 Mar 2014
Accepted answer

I do not know a method, which does this automatically. But snapping is easy, because you only have to find the nearest matching location.

1 Comment

Tayler on 11 Apr 2014

How would one go about making the grid for the images to be dropped on?

Jan Simon

Contact us