Just read the first NL lines and display them
%...
[fid, message] = fopen(filename, 'rt');
for row = 1:NL
fprintf(fgets(fid));
end
MyData = cell2mat( textscan(fid, '%f%f%f%f%f%f', 'Delimiter', '\t','headerlines',NL) );
%...
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!