I want matlab to read multiple text file. The matlab code to read the single text file and specific line is attached. How to read multiple text from the folder?
fid=fopen('E:\ReliabilityAll\alpha\sub1.txt');StartLine=3;for k=1:StartLine-1 fgetl(fid); % read and dump
endFline=fgetl(fid); % this is the 3rd line
%do stuff
fclose(fid)
Best Answer