
Undocumented Secrets of MATLAB
®
-Java Programming134
3.7 Drag-and-Drop
3.7.1 Data Transfer Mechanism in MATLAB
Drag-and-drop (DND), together with cut-copy-and-paste (CCP), collectively called Data
Transfer (DT), are standard functionalities in modern GUI applications. Unfortunately,
MATLAB’s support of these has historically been lacking. Some degree of DT support is avail-
able in MATLAB. For example, we can CCP text into a textbox uicontrol and use DND with
GUIDE or the MATLAB desktop.
140
However, CCP is often lacking (e.g., we cannot paste into
a MATLAB gure or plot) and DND is missing altogether from gure components (axes ...