How can I use following code to select .txt files instead of .m file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Manav Divekar
am 18 Okt. 2021
Kommentiert: Yongjian Feng
am 18 Okt. 2021
[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
0 Kommentare
Akzeptierte Antwort
Yongjian Feng
am 18 Okt. 2021
```
[file,path] = uigetfile({'*.m';'*.slx';'*.mat';'*.*'},...
'File Selector');
```
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matched Filter and Ambiguity Function finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!