How to select multiple folders in dialog box

51 次查看(过去 30 天)
HI everyone
I have one dir with 20 folders, I know how to use uigetfile select multiple files but i don't know how to select multiple folders in dialog box.
can anyone help me?
thankyou
li

回答(1 个)

Walter Roberson
Walter Roberson 2019-3-29
You cannot -- or at least Mac does not permit selecting folders at all (only moving between them) for uigetfile()
There is uigetdir() but it does not permit multiselection.
It is possible to work on the Java level to invoke the key routines that uigetfile() and uigetdir() invoke, but turning on multiselection on the folder browser. I just tested it the possibility interactively and was able to select multiple folders.

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by