Drag and drop file to figure

Hi,
is it possible to drag-and-drop files into a matlab figure (e.g. a gui) instead of using the oldschool uigetfile command?
Sincerely, Peter

 Accepted Answer

Jan
Jan on 16 Dec 2011

2 Comments

Ah... activex
This doesn't seem to work on the latest MATLAB version, as I get errors when I run that and I also get warnings that ACTXCONTROL will be removed in a future release.
The warnings point to this URL:
Is there a solution to this that will work on the latest MATLAB? (I'm using the R2022b prerelease.)

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 16 Dec 2011
You might be able to work something at the Java level; I do not know.

1 Comment

Thank you! Java might work, though it seems a bit tricky.

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Asked:

on 16 Dec 2011

Commented:

on 31 Aug 2022

Community Treasure Hunt

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

Start Hunting!