draggable

Allows graphical objects to be dragged in a figure.

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Francois Bouffard (2026). draggable (https://www.mathworks.com/matlabcentral/fileexchange/4179-draggable), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.1

Includes Gunnar Geissler's 'data' constraint, allowing a marker or other object to snap to data series.

Download
1.4.0

Probable fix to draggable not working well with App Designer apps. Thanks to William E. Warriner for working on the fix with me and testing it.

Download
1.3.0

This update fixes a bug found by Esmerald Aliai in which draggable would not work for axes embedded in Panels. In fact this should also fix Shaun's bug mentioned in March 2012.

Download
1.2.0

Major update. Now supports text objects. Diagonal constraints with arbitrary slopes added. Single call for applying draggable on multiple objects sharing the same parameters supported. Added the 'sliders' demo in dragdemo. General cleanup.

Download
1.1.0

implemented a feature and fixed a bug (both user-suggested)

Download
1.0.0

Bugfix for Matlab 7+: axes no longer disappear. Renderer option removed.

Download