Read Sequence text files in Matlab
Show older comments
Hello everybody , I want to read more than one text file in Matlab with loop , this files not in sequence names same this 'GSM-2_2002095-2002120_0021_UTCSR_0060_0005' 'GSM-2_2002123-2002137_0012_UTCSR_0060_0005', How can i do it ?
Accepted Answer
More Answers (1)
Hussein Mohasseb
on 17 Jan 2016
0 votes
1 Comment
harjeet singh
on 17 Jan 2016
folder_name='test';
files=dir(folder_name);
for i=3:length(files)
file_name=files(i).name;
file_path=fullfile(folder_name,file_name);
fid=fopen(file_path);
c=fread(fid,inf,'*char')
end
Categories
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!