フィルターのクリア

How can I use following code to select .txt files instead of .m file

2 ビュー (過去 30 日間)
Manav Divekar
Manav Divekar 2021 年 10 月 18 日
コメント済み: Yongjian Feng 2021 年 10 月 18 日
[files,path] = uigetfile('MultiSelect', 'on');
if iscell(files)
for n = 1:length(files)
data = importdata(fullfile(path,files{n})); % fullfile including path
% save data
end
else
data = importdata(fullfile(path,files));
% save data
end

採用された回答

Yongjian Feng
Yongjian Feng 2021 年 10 月 18 日
Follow this link, you can set the filter:
```
[file,path] = uigetfile({'*.m';'*.slx';'*.mat';'*.*'},...
'File Selector');
```
  2 件のコメント
Manav Divekar
Manav Divekar 2021 年 10 月 18 日
Thank You!
Yongjian Feng
Yongjian Feng 2021 年 10 月 18 日
Please accept the answer if it is correct. Thanks.

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by