how filter "*.*" when using uigetfile function.
10 ビュー (過去 30 日間)
古いコメントを表示
when load a file by uigetfile can see (*.*) , althougth i only filter the "*.mat";"*.xls";"*.xlsx" . so how can i implement the drop-down menu is not displayed(*.*)
[FileName, FilePath] = uigetfile(["*.mat";"*.xls";"*.xlsx"]);
0 件のコメント
採用された回答
Stephen23
2022 年 9 月 16 日
編集済み: Stephen23
2022 年 9 月 16 日
If there are no descriptors, the "All files" is automatically appened onto the end of the filter. The solution is to add descriptors to your filter string array, e.g.:
[FileName, FilePath] = uigetfile(["*.mat","ABC";"*.xls","DEF";"*.xlsx","GHI"])
Of course you should change the descriptors to suit those file extensions.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Filter Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!