MATLAB: How to remove the first 2 lines from an ascii file

removeremove lines

i have an ascii file whose first line is blank and the second is txt. the other lines are a column of numbers.
124134134 txt 01-txt txt 4 efefef
-3033
-3001
-2932
-2943
-3085
I want somehow to delete the first 2 lines of the ascii and load the rest as a cell with A=importdata('filename')
thanks in advance

Best Answer

You are doing it the hard way around. Easier is
fid = fopen('filename');
datacell = textscan(fid, '%f', 'HeaderLines', 2);
fclose(fid);
A = datacell{1};