uigetfile Multiselect - online Matlab R2020b

4 ビュー (過去 30 日間)
Joan Chick
Joan Chick 2021 年 3 月 23 日
回答済み: Rashed Mohammed 2021 年 3 月 26 日
Hello,
I have started using online Matlab R2020b. I am having difficulty selecting multiple files using uigetfile. I simply try the code from uigetfile help:
[file,path] = uigetfile('*.m','Select One or More Files','MultiSelect', 'on');
But I then get the error:
Index exceeds the number of array elements (0).
Error in matlab.ui.internal.dialog.FileChooser/updateFromDialog (line 215)
obj.PathName = filepaths{1};
Error in matlab.ui.internal.dialog.FileChooser/prepareDialog/localupdate (line 95)
updateFromDialog(obj,updateDataObject(obj));
I can successfully select a single file without the multiselect option. Can anyone help me solve this?
I am trying to get some old 2010b code working in online R2020b but cannot work out why this is a problem.

回答 (1 件)

Rashed Mohammed
Rashed Mohammed 2021 年 3 月 26 日
Hi Joan
This is a bug in MATLAB Online. Our developers are aware of it and are working on fixing it for a future MATLAB Online release.
Currently we do not have a workaround.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by