MATLAB: Using fgetl() to read lines

fgetllines

How can I choose different line to read instead first line, using fgetl() formula?
Thank you.

Best Answer

http://www.mathworks.com/matlabcentral/newsreader/view_thread/297814 may be of some help. Unless you are constrained to using fgetl() for some reason,
C = textscan(fid, '%s','delimiter', '\n');
% Setup the line number in LineNum,
RelevantLine=C{1}{Linenum};
should do the trick.