MATLAB: How to read text file and to ignore the first 10 rows and to take only the 4rth and 5th columns

dlmreadimportdatatextscan

how to read text file and to ignore the first 10 rows and to take only the 4rth and 5th columns? from this file: http://iopscience.iop.org/0266-5611/17/6/301/media/dielTM_dec4f.exp
i tried to use textscan but i don't really understand how to and it looks a bit complicated
any other solution or how to do this?

Best Answer

Try
cac = textscan( fid, '%*f%*f%*f%f%f%*f%*f', 'Headerlines', 10 );
Doc says: &nbsp %* &nbsp Skip the field. textscan does not create an output cell for any field that it skips.
That's not too complicated!
&nbsp
"any other solution or how to do this?" &nbsp None less complicated than textscan - AFAIK
Related Question