I have some text files (1.txt, 2.txt,..., 60.txt) and all of them have 5 lines of header. I use the following codes, but it cannot recognize the headers and import all of the data. How I can say the matlab to start importing from a specific line?
num_txt=60;
input_dir='C:\data';
filenames=dir(fullfile(input_dir,'*.txt'));
i=1;
for n=1:num_txt
filename=fullfile(input_dir, filenames(n).name);
img=importdata(filename);
data(:,i)=img(:);
i=i+1;
end