MATLAB: Read Sequence text files in Matlab

fileMATLABreadsequencetext;

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 ?

Best Answer

try to use this code, do read file with fopen using file_path in the loop
folder_name='ABC';
files=dir(folder_name);
for i=3:length(files)
file_name=files(i).name;
file_path=strcat(folder_name,'\',file_name);
end