Hi,
I need to read the text file shown in the image below using a MATLAB script.I have tried the code below and I appreciate if someone can guide me to make it working. I have attached the text file here.
Thanks in advance.
myFolder = 'C:\Users\Desktop\'filePattern = fullfile(myFolder, '*.txt');csvFiles = dir(filePattern);fmt='%d %4d/%2d/%2d %2d:%2d %d %*[^\n]';for i=1:length(csvFiles) fid = fopen(fullfile(myFolder,csvFiles(i).name)); c=cell2mat(textscan(fid,fmt,'headerlines',18,'collectoutput',1,'delimiter','\t')); fid=fclose(fid);end
Best Answer