Drag and Drop support for Axes?

Does Matlab have any support for 'drag and drop'? Here is a screen capture of my current 'imaging' application :
As you can see, there is a pulldown menu uicontrol at the top which allow selecting an existing image for display. As I'm keeping adding images to the list, I wonder whether Matlab would have any way to allow me to 'drag and drop' an image file over the display area?

Answers (1)

Simar
Simar on 11 Oct 2023
Edited: Simar on 11 Oct 2023
Hi Roger,
I understand that you are looking for ‘drag and drop’ functionality in MATLAB. Yes, MATLAB does support the ‘drag and drop’ of graphic objects across axes within the figure window.
Please refer to the following MATLAB Answer thread by MathWorks Support Team for details on how to achieve this or on any other version:
Best Regards
Simar

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Release

R2021b

Asked:

on 3 Mar 2022

Edited:

on 11 Oct 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!