Drag and drop file to figure

28 ビュー (過去 30 日間)
Peter
Peter 2011 年 12 月 16 日
コメント済み: Nick Patterson 2022 年 8 月 31 日
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

採用された回答

Jan
Jan 2011 年 12 月 16 日
  2 件のコメント
Walter Roberson
Walter Roberson 2011 年 12 月 16 日
Ah... activex
Nick Patterson
Nick Patterson 2022 年 8 月 31 日
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.)

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 12 月 16 日
You might be able to work something at the Java level; I do not know.
  1 件のコメント
Peter
Peter 2011 年 12 月 16 日
Thank you! Java might work, though it seems a bit tricky.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by