MATLAB: Question about the textscan on a text file

headerlinestext filetextscan

I tried to use fopen the attached file, textscan, then reshape the matrix i used
fileid = ('filename.txt');
c = textscan ( fileid, '%n %n %n %n','headerlines',5,'delimiter',',')
the number of the elements that matlab read is 614, but my actual matrix from the text is 616. Is there any problem on my code

Best Answer

Change 'headerlines' count to 3
c = textscan ( fid, '%n %n %n %n','headerlines',3,'delimiter',',');