MATLAB: Print a line from a .txt

MATLABtext;txt

Imagine that you have a .txt with 50 lines and you want your program to print the line 33 of the .txt.
I know that first i have to open the file using fid=fopen(…); but then I don't know how to print only the line I want. Can somebody help me please?

Best Answer

for K = 1 : 32
fgetl(fid);
end
line33 = fgetl(fid);
Related Question