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

1 次查看(过去 30 天)
[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');
```

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by