MATLAB: How to do a “drag’n’drop” (from a file on the computer to a GUI)

drag'n'dropgui

Hi,
I need to create a drag and drop to put it on the graphic interface of a program created in Matlab but I didn't find out how. The drag and drop must be from a wav file located on my computer to the GUI to be then reused through the program.
Any help would be appreciated 🙂
Thank you in advance for your answers

Best Answer

Eugy - I don't think that there is a way to drag and drop a file from your workstation onto a open MATLAB GUI. (Though this would be a neat activity.) An alternative is to prompt the user to choose a file. See uigetfile for details.