Drag and Drop - MatLab AppDesigner
54 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Koussou Axel
am 9 Jan. 2024
Kommentiert: Prof. X
am 11 Nov. 2025 um 14:16
Hi,
I'd like to a drag and drop a file to put it on the graphic interface of an App created with the Matlab AppDesigner but I didn't find out how. The drag and drop must be from a .mat file located on my computer to an Edit Field (Text) component, in order to be then reused through the program.
Any help would be appreciated :)
Thank you in advance for your answers
2 Kommentare
Akzeptierte Antwort
Prof. X
am 12 Jan. 2024
Bearbeitet: Prof. X
am 15 Jan. 2024
Have you seen this? It is a file drag and drop for uifigures.
I have used it with some success.
4 Kommentare
Piyush
am 16 Okt. 2025
Hi Prof X,
I tried using this solution in both Matlab 2025a and 2024b, and it doesn't seem like the callback is getting called. I put in alerts/msgboxes in both the JavaScript inside the DnD_uifigure script, and in the CheckFile function. Is there something wrong in my code? I am using Rocky Linux 8.10 if that helps.
Prof. X
am 11 Nov. 2025 um 14:16
I was using MATLAB 2020b when I made this so there could be some version differences.
Did you try my example code specifically and it did not work?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!