Get from Ico-github-logo

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

  • dd_example1_cbk(drag,drop)
    DD_EXAMPLE1_CBK Callback function for dd_example1
  • dd_example3_cbk(drag,drop)
    DD_EXAMPLE3_CBK Callback function for dd_example3
  • dd_example4_cbk1(drag,drop)
    DD_EXAMPLE4_CBK1 First callback for DD_EXAMPLE4. Defines behavior for 2D Axes
  • dd_example4_cbk2(drag,drop)
    DD_EXAMPLE4_CBK2 Second callback for DD_EXAMPLE4. Defines behavior for 3D Axes
  • dddrag
    dddrag Implement the dragging functionality of dragndrop interface
  • testcallback_7(drag,drop)
    DD_EXAMPLE5_CBK Callback for DD_EXAMPLE5.
  • dragndrop.m
    DRAGNDROP Implement Drag and Drop components of a user interface
  • dd_example1.m
  • dd_example2.m
    DD_EXAMPLE2 Drag and Drop Example 2: Multiple sources and targets.
  • dd_example3.m
    DD_EXAMPLE3 Drag and Drop Example 3: Dragging onto an axes
  • dd_example4.m
    DD_EXAMPLE4 Drag and Drop Example 4: Multiple callback functions
  • dd_example5.m
    DD_EXAMPLE5 Drag and Drop Example 5: Dragging enabled uicontrols
  • View all files
4.2 | 5 ratings Rate this file 15 Downloads (last 30 days) File Size: 117 KB File ID: #4224 Version: 1.2
image thumbnail




05 Dec 2003 (Updated )

This allows you to easily add drag and drop capabilities to any GUI.

| Watch this File

File Information

DRAGNDROP is designed to allow you to easily add drag and drop functionality to your MATLAB-based applications.
To use:
 - Unzip
 - Add the root directory to your path (do not add the @dragndrop directory).
 - Run any of the example files in the examples directory (dd_example1.m through dd_example5.m)

These example files function as a basic tutorial on the interface. Additional documentation is available by typing "doc dragndrop"

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
24 Sep 2010 Y Mehta


Thanks for this submission. Is there a way to drag a windows file on Matlab figure and execute a particular callback in the background when that happens? If yes, please share that as well.

Comment only
15 Jun 2009 huijing

15 Jun 2009 huijing

27 Jan 2008 JK Wang

13 Jan 2006 Aravind Seshadri


10 Dec 2003 Zhang Way

17 Dec 2003

Correct bug in dd_example4.m

06 Jan 2010 1.1

Updated copyright.

17 Aug 2015 1.2

moved code to GitHub

Contact us