FROM: https://uk.mathworks.com/matlabcentral/newsreader/view_thread/297814
Use textread:
C = textread('filename', '%s','delimiter', '\n');
and pick LineNum-th line
C{LineNum};